Verify User OTP

View as Markdown
The **Verify User OTP** is a **non-authenticated API** that allows you to **verify a user’s email using an OTP** and retrieve an **access token** in return. Once you have successfully called `Send User OTP`, you need to pass the **email verification code** along with the user’s email to **verify the OTP**. **Access Token Usages (Received in response)** - This **access token is required** for all **authenticated API calls** (such as placing orders, fetching user details, and submitting KYC). - This **access token remains valid for 30 days from the time of generation**. Once expired, the user must restart the authentication process by requesting a new OTP.

Request

This endpoint expects an object.
apiKeystringRequiredDefaults to YOUR_API_KEY
Your API Key from Transak Dashboard
emailstringRequiredDefaults to test@transak.com
Your Email address used to receive OTP.
otpstringRequiredDefaults to 123456
Your OTP received in your Email inbox.
stateTokenstringRequiredDefaults to STATE_TOKEN_12345

token received in api/v2/auth/login

Response

200 - Success

dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error