Skip to main content

Submit verification code

POST 
/verified_numbers/:phone_number/actions/verify

Submit verification code

Request

Path Parameters

    phone_number stringrequired

    The phone number being verified.

Body

required

    verification_code stringrequired

Responses

200: Expected response to a valid request.

400: Bad Request

401: Unauthorized Request

404: Resource Not Found

422: Unprocessable Entity

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