cURL
curl --request POST \ --url https://prod.featherhq.com/api/v1/twilio/purchase \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
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