Skip to main content

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.

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.

400: Bad Request

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"
}
}