Skip to main content

Phone API

Phone numbers, including routing calls to your own agent.

  • Base URL: https://api.autessa.com
  • Auth: your API key in the Authorization header, with no Bearer prefix.
  • Guide: Phone
  • Status: 0 live, 4 in preview. Preview operations are marked.

List the company's numbers​

Preview GET/clients/phone/numbers

This operation is in preview. Its shape may change before it is generally available.

Parameters

NameInTypeRequiredDescription
limitqueryinteger
cursorquerystring

Response

FieldTypeRequiredDescription
itemsarray of objectYes
nextCursorstringPass as cursor for the next page; absent or null on the last page.
curl -X GET "https://api.autessa.com/clients/phone/numbers" \
-H "Authorization: $AUTESSA_API_KEY"

Buy a number​

Preview POST/clients/phone/numbers/purchase

Needs the key permission PHONE_MANAGE (company admin).

This operation is in preview. Its shape may change before it is generally available.

Request body

FieldTypeRequiredDescription
phoneNumberstringYesE.164 from search.
routingobjectPreview.

Response

FieldTypeRequiredDescription
numberIdstringYes
phoneNumberstringYesE.164.
countrystring
areaCodestring
capabilitiesarray of VOICE | SMS
routingobjectPreview.
curl -X POST "https://api.autessa.com/clients/phone/numbers/purchase" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phoneNumber":"+12065550100"}'

Search numbers to buy​

Preview POST/clients/phone/numbers/search

This operation is in preview. Its shape may change before it is generally available.

Request body

FieldTypeRequiredDescription
countrystringDefault "US".
areaCodestring
containsstring
capabilitiesarray of VOICE | SMS
limitinteger

Response

FieldTypeRequiredDescription
availablearray of object
curl -X POST "https://api.autessa.com/clients/phone/numbers/search" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"country":"US"}'

Route a number to an agent or your own agent​

Preview POST/clients/phone/numbers/{numberId}/routing

This operation is in preview. Its shape may change before it is generally available.

Parameters

NameInTypeRequiredDescription
numberIdpathstringYes

Request body

FieldTypeRequiredDescription
routingTypeAGENT | EXTERNAL_AGENTYes
agentIdstringAgent id.
externalAgentobjectPreview.
voicestring
greetingstring

Response

FieldTypeRequiredDescription
numberIdstringYes
phoneNumberstringYesE.164.
countrystring
areaCodestring
capabilitiesarray of VOICE | SMS
routingobjectPreview.
curl -X POST "https://api.autessa.com/clients/phone/numbers/V1StGXR8Z5/routing" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"routingType":"AGENT"}'