Phone API
Phone numbers, including routing calls to your own agent.
- Base URL:
https://api.autessa.com - Auth: your API key in the
Authorizationheader, with noBearerprefix. - 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | ||
cursor | query | string |
Response
| Field | Type | Required | Description |
|---|---|---|---|
items | array of object | Yes | |
nextCursor | string | Pass 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
| Field | Type | Required | Description |
|---|---|---|---|
phoneNumber | string | Yes | E.164 from search. |
routing | object | Preview. |
Response
| Field | Type | Required | Description |
|---|---|---|---|
numberId | string | Yes | |
phoneNumber | string | Yes | E.164. |
country | string | ||
areaCode | string | ||
capabilities | array of VOICE | SMS | ||
routing | object | Preview. |
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
| Field | Type | Required | Description |
|---|---|---|---|
country | string | Default "US". | |
areaCode | string | ||
contains | string | ||
capabilities | array of VOICE | SMS | ||
limit | integer |
Response
| Field | Type | Required | Description |
|---|---|---|---|
available | array 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
numberId | path | string | Yes |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
routingType | AGENT | EXTERNAL_AGENT | Yes | |
agentId | string | Agent id. | |
externalAgent | object | Preview. | |
voice | string | ||
greeting | string |
Response
| Field | Type | Required | Description |
|---|---|---|---|
numberId | string | Yes | |
phoneNumber | string | Yes | E.164. |
country | string | ||
areaCode | string | ||
capabilities | array of VOICE | SMS | ||
routing | object | Preview. |
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"}'