---
agentTools:
  projectIndex: https://thenftbrewery.readme.io/llms.txt
---

# Verify OTP

This API is used to authenticate customers by verifying the OTP. <br><br> <b>Required Parameters</b> :- <br><br> <b>authCode</b> - TThe authentication code received by the user when they first register  <br><br> <b>OTP</b> - OTP that was sent to the user

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "NFTB APIs",
    "version": "1.0.0",
    "description": ""
  },
  "servers": [
    {
      "url": "https://dev.api.thenftbrewery.com"
    }
  ],
  "components": {
    "schemas": {
      "Authentication": {
        "type": "object",
        "properties": {
          "authCode": {
            "type": "string"
          },
          "otp": {
            "type": "string"
          }
        }
      }
    }
  },
  "paths": {
    "/api/v1/user/otp/verify": {
      "post": {
        "summary": "Verify OTP",
        "tags": [
          "Authentication APIs"
        ],
        "description": "This API is used to authenticate customers by verifying the OTP. <br><br> <b>Required Parameters</b> :- <br><br> <b>authCode</b> - TThe authentication code received by the user when they first register  <br><br> <b>OTP</b> - OTP that was sent to the user ",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Authentication"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully Authenticated <br> authToken :- Use this authToken to to authenticate youreself on calling authorized api"
          },
          "400": {
            "description": "Bad Request Errors"
          },
          "404": {
            "description": "authCode does not exist"
          },
          "406": {
            "description": "OTP has expired <br> Invalid OTP, Check Your Email Again"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 154,
      "2": 22,
      "3": 185,
      "4": 157,
      "5": 178,
      "6": 247,
      "7": 0,
      "8": 49,
      "9": 249,
      "10": 105,
      "11": 121
    }
  }
}
```