cURL
curl --request POST \ --url https://9dc2c77e6dbf.ngrok-free.app/v1/phone-numbers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "phoneNumberId": "123e4567-e89b-12d3-a456-426614174001", "telnyxMessagingProfile": "1234567890abcdef" }'
{ "phoneNumberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "appId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "number": "<string>", "createdAt": "<string>", "updatedAt": "<string>" }
Add a phone number to the authenticated app
App API key (format: sk_live_app_* or sk_test_app_*) for app-level operations
UUID of the phone number to add to the app
"123e4567-e89b-12d3-a456-426614174001"
Telnyx messaging profile ID
"1234567890abcdef"
Phone number added successfully