Phone Com Routes API

Routes, a.k.a. 'Call Handling Rules' or 'Presets', are used to tell Phone.com how to handle incoming phone calls. They can be used to connect your Phone.com phone number to an extension, a menu, a calling queue, or many other things. The fundamental element of a route is an action. We support many different actions such as forward, menu, and voicemail. See below for the full details. In general, actions are processed one at a time in the order you specify, until the call is answered or disconnected. Answering or disconnecting stops any additional actions from being performed. Note that several actions such as voicemail, menu, and fax completely take over processing the call and do not result in processing any subsequent actions. Actions are grouped into rule sets. Rule sets can be filtered based on the time of day or the caller's phone number. When processing an incoming call, Phone.com's routing engine will evaluate each rule set in the order that was specified when the route was created or updated. The first matching rule set will be used, and all other rule sets will be ignored. Each route must have at least one unfiltered rule set. Note that if your route contains multiple unfiltered rule sets, only the first one will be used.

GitHub OpenAPI
Business capability
Voice & Telephony AE-150.50

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v4/accounts/{voip_id}/extensions/{extension_id}/routes Add a route to an extension · Create Route for extension #
Ask an LLM
“How do I route calls to a specific extension?”
“Can I add a new route to one extension?”
Tell an agent
Add route {name} to extension {extension_id} in account {voip_id} with rules {rules}.
Create a new route on extension {extension_id} of {voip_id}.
GET /v4/accounts/{voip_id}/extensions/{extension_id}/routes List an extension's call routes · List Routes for extension #
Ask an LLM
“Which call routing rules are set up for one extension?”
“Can I filter an extension's routes by name?”
Tell an agent
List routes for extension {extension_id} in account {voip_id}.
Show {limit} routes named {name} on extension {extension_id} of {voip_id}.
GET /v4/accounts/{voip_id}/extensions/{extension_id}/routes/{id} Get one extension route · Get Route for extension #
Ask an LLM
“What rules does a particular extension route use?”
“Can I see usage for one route on an extension?”
Tell an agent
Show route {id} on extension {extension_id} in account {voip_id}.
Get extension {extension_id} route {id} with usage {with_usage} in {voip_id}.
PUT /v4/accounts/{voip_id}/extensions/{extension_id}/routes/{id} Replace an extension route · Replace Route for extension #
Ask an LLM
“How do I overwrite all the rules on an extension route?”
“Can I rename an extension route?”
Tell an agent
Replace route {id} on extension {extension_id} in account {voip_id} with rules {rules}.
Rename extension {extension_id} route {id} to {name} in {voip_id}.
PATCH /v4/accounts/{voip_id}/extensions/{extension_id}/routes/{id} Patch an extension-level route · Patch Route #
Ask an LLM
“Can I change the rules on a route defined on a specific extension?”
“Is it possible to rename an extension-level route without resending every rule?”
Tell an agent
Update route {id} on extension {extension_id}, account {voip_id} with rules {rules}.
Rename extension-level route {id} on extension {extension_id}, account {voip_id}, to {name}, using rules {rules}.
DELETE /v4/accounts/{voip_id}/extensions/{extension_id}/routes/{id} Delete an extension route · Delete Route for extension #
Ask an LLM
“How do I remove a route from one extension?”
“Can I force-delete an extension route that is still in use?”
Tell an agent destructive · confirm first
Delete route {id} from extension {extension_id} in account {voip_id}.
Force-remove extension {extension_id} route {id} in {voip_id} with force {force}.
POST /v4/accounts/{voip_id}/routes Add a route to an account · Create Route #
Ask an LLM
“How do I create a route that applies across the whole account?”
“Can I add a new account-level route?”
Tell an agent
Add route {name} to account {voip_id} with rules {rules}.
Create an account-wide route in {voip_id}.
GET /v4/accounts/{voip_id}/routes List an account's call routes · List Routes #
Ask an LLM
“Which routes are defined at the account level?”
“Can I filter account-wide routes by extension?”
Tell an agent
List routes for account {voip_id}.
Show {limit} account-wide routes on extension {extension} in {voip_id}.
GET /v4/accounts/{voip_id}/routes/{id} Get an account route · Get Route #
Ask an LLM
“What rules does a particular account route use?”
“Can I see usage for an account route?”
Tell an agent
Show route {id} in account {voip_id}.
Get account {voip_id} route {id} with usage {with_usage}.
PUT /v4/accounts/{voip_id}/routes/{id} Replace an account route · Replace Route #
Ask an LLM
“How do I overwrite all the rules on an account route?”
“Can I rename an account route?”
Tell an agent
Replace route {id} in account {voip_id} with rules {rules}.
Rename account {voip_id} route {id} to {name}.
PATCH /v4/accounts/{voip_id}/routes/{id} Patch a route at the account level · Patch Route #
Ask an LLM
“Can I edit an account-wide route without touching any extension routes?”
“What happens to an account-level route when I change its rules?”
Tell an agent
Update account-wide route {id}, account {voip_id} with rules {rules}.
Rename the account-level route {id} on account {voip_id} to {name}, with rules {rules}.
DELETE /v4/accounts/{voip_id}/routes/{id} Delete an account route · Delete Route #
Ask an LLM
“How do I remove a route from the account?”
“Can I force-delete an account route that is still in use?”
Tell an agent destructive · confirm first
Delete route {id} from account {voip_id}.
Force-remove account {voip_id} route {id} with force {force}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/phone-com:phone-com-routes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

phone-com-routes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Phoenix API by Phone.com Routes API
  description: API
  version: 4.6.11
servers:
- url: https://api.phone.com
  description: Main production server
tags:


# --- truncated at 32 KB (69 KB total) ---
# Full source: https://artifacts.apis.io/phone-com/openapi/phone-com-routes-api-openapi.yml