curl -X POST 'https://crypto-api.yativo.com/api/v1/auth/otp-verification' \
-H 'Content-Type: application/json' \
-d '{
"otp": "123456",
"email": "user@example.com"
}'
{
"status": "success",
"message": "OTP verified successfully",
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}
Authentication
Verify OTP
Verify a one-time password to complete two-factor authentication
POST
/
v1
/
auth
/
otp-verification
curl -X POST 'https://crypto-api.yativo.com/api/v1/auth/otp-verification' \
-H 'Content-Type: application/json' \
-d '{
"otp": "123456",
"email": "user@example.com"
}'
{
"status": "success",
"message": "OTP verified successfully",
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}
string
required
The one-time password sent to the user’s email or authenticator app.
string
The user’s email address. Required if not already established in the session.
curl -X POST 'https://crypto-api.yativo.com/api/v1/auth/otp-verification' \
-H 'Content-Type: application/json' \
-d '{
"otp": "123456",
"email": "user@example.com"
}'
{
"status": "success",
"message": "OTP verified successfully",
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}

