Request phone number verification
POST/verified_numbers
Initiates phone number verification procedure.
Request
- application/json
Body
required
phone_number stringrequired
verification_method stringrequired
Possible values: [sms
, call
]
Verification method.
Responses
200: Expected response to a valid request.
- application/json
400: Bad Request
- application/json
401: Unauthorized Request
- application/json
422: Unprocessable Entity
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/verified_numbers' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"phone_number": "+15551234567",
"verification_method": "sms"
}'
Response samples
{
"phone_number": "+15551234567",
"verification_method": "sms"
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {
"url": "string"
}
}
]
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {
"url": "string"
}
}
]
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {
"url": "string"
}
}
]
}