List phone numbers
Phone Numbers
List Phone Numbers
Lists active phone numbers assigned to the API key’s company. Use the returned id when referencing a phone number in an agent configuration. ATS keys must supply the companyId query parameter.
GET
List phone numbers
Lists all active phone numbers assigned to the API key’s company.
Overview
The list phone numbers endpoint returns all phone numbers currently assigned to your company. Use the phone numberid field when configuring agents for outbound or inbound calls.
Use Cases
- Agent Configuration: Retrieve phone number IDs before creating or updating agents
- Number Inventory: Audit which numbers are assigned to your company
- Capability Check: Verify whether numbers support outbound, inbound, or both call directions
ATS Keys
ATS partner keys must supply thecompanyId query parameter to specify which child company’s phone numbers to list. Regular company API keys automatically scope the response to their own company.
Basic Usage
With Pagination
Finding a Phone Number for an Agent
ATS Key Example
Authorizations
API key for authentication using Bearer scheme
Query Parameters
Page number (1-based)
Required range:
1 <= x <= 10000Example:
1
Number of items per page
Required range:
1 <= x <= 100Example:
20
Company ID (required for ATS keys, optional for regular keys)
Example:
"123e4567-e89b-12d3-a456-426614174000"