POST /v1/auth/send-otp
Send OTP via WhatsApp or SMS
Request
POST /v1/auth/send-otp
Parameters
[]
Response
{
"200": {
"description": "OTP sent successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
},
"expires_at": {
"type": "string"
}
},
"required": [
"success",
"message",
"expires_at"
]
}
}
}
},
"400": {
"description": "Invalid phone or validation error",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"error": {
"type": "string"
}
},
"required": [
"success",
"error"
]
}
}
}
},
"429": {
"description": "Too many requests",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"error": {
"type": "string"
}
},
"required": [
"success",
"error"
]
}
}
}
}
}
View in Interactive API Reference