POST /v1/auth/verify-otp
Verify OTP and complete action
Request
POST /v1/auth/verify-otp
Parameters
[]
Response
{
"200": {
"description": "OTP verified successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"data": {
"type": "object",
"properties": {
"access_token": {
"type": "string"
},
"refresh_token": {
"type": "string"
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"phone": {
"type": "string"
},
"full_name": {
"type": "string"
},
"email": {
"type": "string"
}
},
"required": [
"id",
"phone",
"full_name"
]
},
"message": {
"type": "string"
}
}
}
},
"required": [
"success",
"data"
]
}
}
}
},
"400": {
"description": "Invalid OTP or validation error",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"error": {
"type": "string"
}
},
"required": [
"success",
"error"
]
}
}
}
},
"410": {
"description": "OTP expired",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"error": {
"type": "string"
}
},
"required": [
"success",
"error"
]
}
}
}
}
}
View in Interactive API Reference