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.
apiKeystringRequired
Your API Key from Transak Dashboard
emailstringRequired
Your Email address used to receive OTP.
otpstringRequired
Your OTP received in your Email inbox.
stateTokenstringRequired

token received in api/v2/auth/login

Response

200 - Success

dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error