Skip to main content

Send the verification codes

POST 
/porting_orders/:id/verification_codes/send

Send the verification code for all porting phone numbers.

Request

Path Parameters

    id uuidrequired

    Porting Order id

Body

A list of phone numbers to send the verification codes to and the method to send them by

    phone_numbers string[]

    Possible values: <= 100

    verification_method string

    Possible values: [sms, call]

Responses

204: No content

401: Unauthorized

404: Resource not found

422: Unprocessable entity. Check message field in response for details.

Request samples


curl -L 'https://api.telnyx.com/v2/porting_orders/:id/verification_codes/send' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"phone_numbers": [
"+61424000001",
"+61424000002"
],
"verification_method": "sms"
}'