Verify verification code by phone number
POST/verifications/by_phone_number/:phone_number/actions/verify
Verify verification code by phone number
Request
Path Parameters
phone_number stringrequired
The phone number associated with the verification code being verified.
- application/json
Body
required
code stringrequired
This is the code the user submits for verification.
verify_profile_id uuidrequired
The identifier of the associated Verify profile.
Responses
200: Expected verify response to a valid request.
- application/json
400: Bad Request
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/verifications/by_phone_number/:phone_number/actions/verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"code": "17686",
"verify_profile_id": "12ade33a-21c0-473b-b055-b3c836e1c292"
}'
Response samples
{
"data": {
"phone_number": "+13035551234",
"response_code": "accepted"
}
}
{
"errors": [
{
"code": "10015",
"title": "Invalid sorting value",
"detail": "The value provided for sorting is not valid. Check the value used and try again.",
"source": {
"pointer": "/sort",
"parameter": "string"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10015"
}
}
]
}