Submit verification code
POST/verified_numbers/:phone_number/actions/verify
Submit verification code
Request
Path Parameters
phone_number stringrequired
The phone number being verified.
- application/json
Body
required
verification_code stringrequired
Responses
200: Expected response to a valid request.
- application/json
400: Bad Request
- application/json
401: Unauthorized Request
- application/json
404: Resource Not Found
- application/json
422: Unprocessable Entity
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/verified_numbers/:phone_number/actions/verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"verification_code": "123456"
}'
Response samples
{
"data": {
"phone_number": "+15551234567",
"record_type": "verified_number",
"verified_at": "2020-09-14T17:03:32.965812"
}
}
{
"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"
}
}
]
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {
"url": "string"
}
}
]
}