Verify
Verify verification code by phone number
Changed onSubmits a verification code for the specified phone number and Verify profile. The response indicates whether the code was accepted or rejected.
post/verifications/by_phone_number/{phone_number}/actions/verify
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/verifications/by_phone_number/{phone_number}/actions/verify
- Auth: HTTP bearer
Path parameters
phone_numberstring required
+E164 formatted phone number.
Example:+13035551234
The phone number associated with the verification code being verified.
Request body
Example request
{
"code": "17686",
"verify_profile_id": "12ade33a-21c0-473b-b055-b3c836e1c292"
}Response
Expected verify response to a valid request.
Example response
{
"data": {
"phone_number": "+13035551234",
"response_code": "accepted"
}
}Changes
- breaking
the
//response's property type changed fromintegertostring, and format fromint32to no format for status - info
added the optional property
//to the response with the status
- breaking
- breaking
the
//response's property type changed fromstringtointeger, and format from no format toint32for status - warning
removed the optional property
///from the response with the status
- breaking