/v1/otp/sendجسم الطلب
{
"type": "object",
"required": [
"phone"
],
"properties": {
"phone": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$"
}
},
"additionalProperties": false
}الاستجابات
200
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"message_id": {
"type": "string"
},
"status": {
"type": "string"
},
"expires_in": {
"type": "number"
}
}
}
}
}default — Error response (standard envelope). `code` is a stable machine-readable string — e.g. VALIDATION_ERROR (400), UNAUTHORIZED / INVALID_API_KEY (401), RATE_LIMIT_EXCEEDED (429), INTERNAL_ERROR (500); `message` is human-readable.
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable, machine-readable error code."
},
"message": {
"type": "string",
"description": "Human-readable description."
}
}
}
}
}