---
title: "Get Phone Number"
method: GET
path: "/v1/convai/phone-numbers/{phone_number_id}"
tags: ["Agents Platform"]
---

# Get Phone Number

`GET /v1/convai/phone-numbers/{phone_number_id}`

## Request

- Base URL: `https://api.elevenlabs.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.elevenlabs.io/v1/convai/phone-numbers/{phone_number_id}`
- Auth: none declared

Retrieve Phone Number details by ID

## Path parameters

- `phone_number_id` string, required: The phone number ID. This is returned when a phone number is imported.

## Headers

- `xi-api-key` string, nullable: Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Response `200`

Successful Response

- union
  - GetPhoneNumberTwilioResponseModel
    - `phone_number` string, required: Phone number
    - `label` string, required: Label for the phone number
    - `supports_inbound` boolean: This field is deprecated and will be removed in the future. Whether this phone number supports inbound calls
    - `supports_outbound` boolean: This field is deprecated and will be removed in the future. Whether this phone number supports outbound calls
    - `phone_number_id` string, required: The ID of the phone number
    - `assigned_agent` PhoneNumberAgentInfo
      - `agent_id` string, required: The ID of the agent
      - `agent_name` string, required: The name of the agent
      - `environment` string, nullable: Environment to use for resolving environment variables on calls to this number.
      - `branch_id` string, nullable: Agent branch to use for calls to this number.
    - `provider` 'twilio': Phone provider
  - GetPhoneNumberExotelResponseModel
    - `phone_number` string, required: Phone number
    - `label` string, required: Label for the phone number
    - `supports_inbound` boolean: This field is deprecated and will be removed in the future. Whether this phone number supports inbound calls
    - `supports_outbound` boolean: This field is deprecated and will be removed in the future. Whether this phone number supports outbound calls
    - `phone_number_id` string, required: The ID of the phone number
    - `assigned_agent` PhoneNumberAgentInfo
      - `agent_id` string, required: The ID of the agent
      - `agent_name` string, required: The name of the agent
      - `environment` string, nullable: Environment to use for resolving environment variables on calls to this number.
      - `branch_id` string, nullable: Agent branch to use for calls to this number.
    - `provider` 'exotel': Phone provider
  - GetPhoneNumberSIPTrunkResponseModel
    - `phone_number` string, required: Phone number
    - `label` string, required: Label for the phone number
    - `supports_inbound` boolean: This field is deprecated and will be removed in the future. Whether this phone number supports inbound calls
    - `supports_outbound` boolean: This field is deprecated and will be removed in the future. Whether this phone number supports outbound calls
    - `phone_number_id` string, required: The ID of the phone number
    - `assigned_agent` PhoneNumberAgentInfo
      - `agent_id` string, required: The ID of the agent
      - `agent_name` string, required: The name of the agent
      - `environment` string, nullable: Environment to use for resolving environment variables on calls to this number.
      - `branch_id` string, nullable: Agent branch to use for calls to this number.
    - `provider` 'sip_trunk': Phone provider
    - `provider_config` GetPhoneNumberOutboundSIPTrunkConfigResponseModel: SIP Trunk configuration details for a phone number
      - `address` string, required: Hostname or IP the SIP INVITE is sent to
      - `transport` 'auto' | 'udp' | 'tcp' | 'tls', required
      - `media_encryption` 'disabled' | 'allowed' | 'required', required
      - `headers` object: SIP headers for INVITE request
      - `attributes_to_headers` object: Map of dynamic variable name to header name for attributes_to_headers
      - `has_auth_credentials` boolean, required: Whether authentication credentials are configured
      - `username` string, nullable: SIP trunk username (if available)
      - `has_outbound_trunk` boolean: Whether a LiveKit SIP outbound trunk is configured
      - `enabled_codecs` MediaCodec[]: Media codecs that are offered in the SDP for outbound calls. If empty, all supported codecs are offered.
    - `outbound_trunk` GetPhoneNumberOutboundSIPTrunkConfigResponseModel: SIP Trunk configuration details for a phone number
      - `address` string, required: Hostname or IP the SIP INVITE is sent to
      - `transport` 'auto' | 'udp' | 'tcp' | 'tls', required
      - `media_encryption` 'disabled' | 'allowed' | 'required', required
      - `headers` object: SIP headers for INVITE request
      - `attributes_to_headers` object: Map of dynamic variable name to header name for attributes_to_headers
      - `has_auth_credentials` boolean, required: Whether authentication credentials are configured
      - `username` string, nullable: SIP trunk username (if available)
      - `has_outbound_trunk` boolean: Whether a LiveKit SIP outbound trunk is configured
      - `enabled_codecs` MediaCodec[]: Media codecs that are offered in the SDP for outbound calls. If empty, all supported codecs are offered.
    - `inbound_trunk` GetPhoneNumberInboundSIPTrunkConfigResponseModel
      - `allowed_addresses` string[], required: List of IP addresses that are allowed to use the trunk. Each item in the list can be an individual IP address or a Classless Inter-Domain Routing notation representing a CIDR block.
      - `allowed_numbers` string[], nullable, required: List of phone numbers that are allowed to use the trunk.
      - `media_encryption` 'disabled' | 'allowed' | 'required', required
      - `has_auth_credentials` boolean, required: Whether authentication credentials are configured
      - `username` string, nullable: SIP trunk username (if available)
      - `remote_domains` string[], nullable: Domains of remote SIP servers used to validate TLS certificates.
      - `attributes_to_headers` object: Map of dynamic variable name to header name for attributes_to_headers
    - `livekit_stack` 'standard' | 'static', required
    - `store_sip_messages` boolean: Whether to store SIP messages for this phone number.

## Other responses

- `422`: Validation Error

## Changes

- **2026-07-13** `009bd651509a`: 2 info
  - added the optional property `oneOf[subschema #3: GetPhoneNumberSIPTrunkResponseModel]/outbound_trunk/anyOf[subschema #1: GetPhoneNumberOutboundSIPTrunkConfigResponseModel]/enabled_codecs` to the response with the `200` status
  - added the optional property `oneOf[subschema #3: GetPhoneNumberSIPTrunkResponseModel]/provider_config/anyOf[subschema #1: GetPhoneNumberOutboundSIPTrunkConfigResponseModel]/enabled_codecs` to the response with the `200` status
- **2026-06-08** `37fac3c5a2d7`: 1 breaking, 9 info
  - added `#/components/schemas/GetPhoneNumberExotelResponseModel` to the response body `oneOf` list for the response status `200`
  - added `exotel` mapping keys to the response discriminator for the response status `200`
  - added the optional property `oneOf[subschema #1: GetPhoneNumberTwilioResponseModel]/assigned_agent/anyOf[subschema #1: PhoneNumberAgentInfo]/branch_id` to the response with the `200` status
  - added the optional property `oneOf[subschema #1: GetPhoneNumberTwilioResponseModel]/assigned_agent/anyOf[subschema #1: PhoneNumberAgentInfo]/environment` to the response with the `200` status
  - …6 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/changes/v1/convai/phone-numbers/:phone_number_id/get.md)

---

[API](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation.md) - [All operations](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/revisions/d04f5e77c40a?raw)
