For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Status
OverviewProductsManageAPI ReferenceTutorialsClient Libraries
OverviewProductsManageAPI ReferenceTutorialsClient Libraries
  • Voice Generation
    • Speech-to-Speech
  • Voice Creation
  • Voice Tools
  • Real-Time Agents
    • Overview
      • Overview
      • List Agent Phone Numbers
      • Get Agent Phone Number
      • Create Agent Phone Number
      • Delete Agent Phone Number
      • Force Delete Agent Phone Number
  • Safety & Detection
Status
LogoLogo
On this page
  • HTTP Request
  • Alternative Endpoints
  • Query Parameters
  • Example Requests
  • List All Phone Numbers
  • List Phone Numbers for Specific Agent
  • List Only Available Phone Numbers
  • Response
  • Response Body
  • Outbound Trunk Object
  • Inbound Trunk Object
Real-Time AgentsAgent Phone Numbers

List Phone Numbers

Was this page helpful?
Previous

Get Phone Number

Next
Built with

Retrieve all phone numbers for the authenticated team, optionally filtered by agent or availability.

HTTP Request

$GET https://app.resemble.ai/api/v2/phone_numbers

Alternative Endpoints

$# List phone numbers for specific agent
$GET https://app.resemble.ai/api/v2/agents/{agent_uuid}/phone_numbers
$
$# List only available (unlinked) phone numbers
$GET https://app.resemble.ai/api/v2/phone_numbers?available=true

Query Parameters

ParameterTypeDescription
availablebooleanFilter for unlinked phone numbers (optional)

Example Requests

List All Phone Numbers

$curl --request GET "https://app.resemble.ai/api/v2/phone_numbers" \
> -H "Authorization: Bearer YOUR_API_TOKEN" \
> -H "Content-Type: application/json"

List Phone Numbers for Specific Agent

$curl --request GET "https://app.resemble.ai/api/v2/agents/550e8400-e29b-41d4-a716-446655440000/phone_numbers" \
> -H "Authorization: Bearer YOUR_API_TOKEN" \
> -H "Content-Type: application/json"

List Only Available Phone Numbers

$curl --request GET "https://app.resemble.ai/api/v2/phone_numbers?available=true" \
> -H "Authorization: Bearer YOUR_API_TOKEN" \
> -H "Content-Type: application/json"

Response

1{
2 "success": true,
3 "items": [
4 {
5 "id": 1,
6 "phone_number": "+14155551234",
7 "label": "Support Line",
8 "supports_inbound": true,
9 "supports_outbound": false,
10 "provider": "twilio",
11 "status": "active",
12 "agent_id": 123,
13 "agent_name": "Customer Support Agent",
14 "agent_uuid": "550e8400-e29b-41d4-a716-446655440000",
15 "outbound_trunk": {
16 "twilio_trunk_sid": "TK...",
17 "domain_name": "example.pstn.twilio.com",
18 "configured": true,
19 "configured_at": "2025-01-27T10:00:00Z"
20 },
21 "inbound_trunk": {
22 "twilio_trunk_sid": "TK...",
23 "domain_name": "example.pstn.twilio.com",
24 "configured": true,
25 "configured_at": "2025-01-27T10:00:00Z",
26 "livekit_trunk_id": "TR_...",
27 "livekit_dispatch_rule_id": "DR_...",
28 "livekit_configured": true,
29 "livekit_configured_at": "2025-01-27T10:00:00Z"
30 },
31 "twilio_account_sid": "AC...",
32 "has_twilio_credentials": true,
33 "created_at": "2025-01-27T10:00:00Z",
34 "updated_at": "2025-01-27T10:00:00Z"
35 }
36 ],
37 "count": 1
38}

Response Body

AttributeTypeDescription
successbooleanIndicates if the request was successful
itemsarrayArray of phone number objects
countintegerTotal number of phone numbers
idintegerPhone number ID
phone_numberstringE.164 formatted phone number
labelstringHuman-readable label
supports_inboundbooleanWhether inbound calls are supported
supports_outboundbooleanWhether outbound calls are supported
providerstringProvider: “twilio”
statusstringStatus: “active”, “corrupted”, or “deleting”
agent_idintegerLinked agent ID (null if unlinked)
agent_namestringLinked agent name (null if unlinked)
agent_uuidstringLinked agent UUID (null if unlinked)
outbound_trunkobjectOutbound trunk configuration
inbound_trunkobjectInbound trunk configuration
twilio_account_sidstringTwilio account SID
has_twilio_credentialsbooleanWhether Twilio auth token is configured
created_atstringISO8601 timestamp
updated_atstringISO8601 timestamp

Outbound Trunk Object

AttributeTypeDescription
twilio_trunk_sidstringTwilio SIP trunk SID
domain_namestringSIP domain name
configuredbooleanWhether trunk is configured
configured_atstringISO8601 timestamp of configuration

Inbound Trunk Object

AttributeTypeDescription
twilio_trunk_sidstringTwilio SIP trunk SID
domain_namestringSIP domain name
configuredbooleanWhether Twilio trunk is configured
configured_atstringISO8601 timestamp of Twilio configuration
livekit_trunk_idstringLiveKit trunk ID
livekit_dispatch_rule_idstringLiveKit dispatch rule ID
livekit_configuredbooleanWhether LiveKit is configured
livekit_configured_atstringISO8601 timestamp of LiveKit configuration