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>",
"smsLinkedAgent": {
"agentId": "<string>",
"agentName": "<string>"
},
"squad": {
"squadId": "<string>",
"squadName": "<string>"
}
}Purchase a phone number from Twilio and add it to the organization. Requires sufficient phone_lines credits.
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>",
"smsLinkedAgent": {
"agentId": "<string>",
"agentName": "<string>"
},
"squad": {
"squadId": "<string>",
"squadName": "<string>"
}
}Phone number purchased successfully
FEATHER, CLIENT Show child attributes
Show child attributes
Show child attributes
Show child attributes