cURL
curl --request POST \ --url https://prod.featherhq.com/api/v1/twilio/purchase \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "phoneNumber": "+14155551234", "friendlyName": "My Business Line" }'
{ "id": "<string>", "phoneNumber": "<string>", "city": "<string>", "state": "<string>", "country": "<string>", "ownership": "FEATHER", "inboundAgent": { "agentId": "<string>", "agentName": "<string>" }, "outboundAgents": [ { "agentId": "<string>", "agentName": "<string>" } ], "createdAt": "<string>", "updatedAt": "<string>" }
Purchase a phone number from Twilio and add it to the organization. Requires sufficient phone_lines credits.
The phone number to purchase in E.164 format
"+14155551234"
A friendly name for the phone number
"My Business Line"
Phone number purchased successfully
FEATHER
CLIENT
Show child attributes