cURL
curl --request POST \ --url https://api.helloannie.com/v1/phone-numbers/{phoneNumberId}/attach \ --header 'Content-Type: application/json' \ --data ' { "botId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } '
{ "success": true, "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "botId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "number": "<string>", "name": "<string>", "language": "ENGLISH", "outbound": true, "verifiedCallerId": "<string>", "callbackForwardingNumber": "<string>", "voiceId": "FRIENDLY_BRIGHT", "speed": 123, "stability": 123, "similarity": 123, "style": 123 } }
Attach a phone number to a bot. The bot must belong to the same organization as the phone number.
The ID of the phone number to attach
Payload required to attach a phone number to a bot
The bot ID to attach this phone number to
Response returned after attaching a phone number to a bot
true
Represents a Twilio phone number and its configuration
Show child attributes