Skip to main content

Request phone number verification

POST 
/verified_numbers

Initiates phone number verification procedure.

Request

Body

required

    phone_number stringrequired
    verification_method stringrequired

    Possible values: [sms, call]

    Verification method.

Responses

200: Expected response to a valid request.

400: Bad Request

401: Unauthorized Request

422: Unprocessable Entity

Request samples


curl -L 'https://api.telnyx.com/v2/verified_numbers' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"phone_number": "+15551234567",
"verification_method": "sms"
}'

Response samples


{
"phone_number": "+15551234567",
"verification_method": "sms"
}