apicheats.dev elevenlabs/llms.txt Raw .md
GET

GET /v1/convai/v2/phone-numbers — ElevenLabs API

ElevenLabs API

List Phone Numbers Page

Base URL
https://api.elevenlabs.io
Auth
xi-api-key: <ELEVENLABS_API_KEY>
Last verified
2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 219 tokens · Vary: Accept

Critical gotchas

Authentication uses the non-standard xi-api-key header, not Authorization: Bearer. Sending a Bearer token returns HTTP 401.

Text-to-speech responses are raw binary audio, not JSON. Write the body to a file (--output speech.mp3) rather than parsing it.

cURL

curl -X GET 'https://api.elevenlabs.io/v1/convai/v2/phone-numbers?page_size=100&search=example-search&label=example-label&phone_number=example-phone-number&provider=twilio&supports_outbound=true&agent_id=agent-id&branch_id=branch-id&sort_by=label&sort_direction=asc&cursor=example-cursor' \  -H "xi-api-key: $ELEVENLABS_API_KEY"

Parameters

Name In Type Required Description
page_size query integer No Number of phone numbers per page
search query string No Filter by phone number ID, label, or phone number. A phone number ID must match exactly; label and phone number matching is a case-insensitive substring.
label query string No Filter by label. Matching is a case-insensitive substring.
phone_number query string No Filter by phone number
provider query string No Filter by telephony provider
supports_outbound query boolean No Filter by whether the phone number can place outbound calls
agent_id query string No Filter by assigned agent ID
branch_id query string No Filter by assigned branch ID
sort_by query string No The field to sort the results by
sort_direction query string No The direction to sort the results
cursor query string No Used for fetching next page. Cursor is returned in the response.

Response 200 OK

{
  "phone_numbers": [
    {
      "label": "Customer Support",
      "phone_number": "+1234567890",
      "phone_number_id": "phone_123",
      "provider": "twilio"
    }
  ],
  "next_cursor": "string",
  "has_more": false
}
Get a free ElevenLabs API key → sponsored

Affiliate link - we may earn a commission, at no extra cost to you.