> ## Documentation Index
> Fetch the complete documentation index at: https://docs.verbex.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a paginated list of all phone numbers configured in your PIA Platform account

> Retrieve a paginated list of all phone numbers configured in your PIA Platform account.
The list includes all phone number types (Import Phone Numbers and PIA-managed) and their current
configurations. Use the page_size and page_token parameters to navigate through the list
for accounts with many phone numbers.

The response includes essential information for each phone number:
- Phone number details and type
- Associated AI agent (if any)
- Configuration status
- Creation and last modified timestamps



## OpenAPI

````yaml /api-reference/openapi.json get /v1/phone-numbers/
openapi: 3.1.0
info:
  title: Verbex Platform API
  description: API for managing AI agents, calls, phone numbers, and more.
  version: 1.0.0
servers: []
security: []
paths:
  /v1/phone-numbers/:
    get:
      tags:
        - Phone Numbers
      summary: >-
        Retrieve a paginated list of all phone numbers configured in your PIA
        Platform account
      description: >-
        Retrieve a paginated list of all phone numbers configured in your PIA
        Platform account.

        The list includes all phone number types (Import Phone Numbers and
        PIA-managed) and their current

        configurations. Use the page_size and page_token parameters to navigate
        through the list

        for accounts with many phone numbers.


        The response includes essential information for each phone number:

        - Phone number details and type

        - Associated AI agent (if any)

        - Configuration status

        - Creation and last modified timestamps
      operationId: list_phone_numbers_v1_phone_numbers__get
      parameters:
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Page Size
        - name: page_token
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Page Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneNumberListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/app__phone_numbers__schemas__ErrorResponse
          description: Internal Server Error
components:
  schemas:
    PhoneNumberListResponse:
      properties:
        phone_numbers:
          items:
            anyOf:
              - $ref: '#/components/schemas/GetSIPPhoneNumberResponse'
              - $ref: '#/components/schemas/GetPiaPhoneNumberResponse'
              - $ref: '#/components/schemas/GetTwilioPhoneNumberResponse'
          type: array
          title: Phone Numbers
          description: List of phone number records matching the query parameters
        next_page_token:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Page Token
          description: >-
            Token for retrieving the next page of results. Null if there are no
            more results
      type: object
      required:
        - phone_numbers
      title: PhoneNumberListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    app__phone_numbers__schemas__ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: A short error code identifying the type of error that occurred
        message:
          type: string
          title: Message
          description: >-
            A detailed human-readable message explaining the error and possible
            solutions
      type: object
      required:
        - error
        - message
      title: ErrorResponse
    GetSIPPhoneNumberResponse:
      properties:
        _id:
          type: string
          title: Id
          description: Unique identifier for this phone number record
        provider:
          type: string
          const: sip
          title: Provider
          description: Indicates this is an Import Phone Number (SIP provider)
          default: sip
        phone_number:
          type: string
          title: Phone Number
          description: >-
            The phone number in E.164 format, including country code (e.g.,
            +14155552671)
        friendly_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Friendly Name
          description: A human-readable label for this phone number
        sip_termination_uri:
          anyOf:
            - type: string
            - type: 'null'
          title: Sip Termination Uri
          description: The SIP URI where calls are terminated
        sip_trunk_username:
          anyOf:
            - type: string
            - type: 'null'
          title: Sip Trunk Username
          description: Username for SIP trunk authentication
        sip_trunk_password:
          anyOf:
            - type: string
            - type: 'null'
          title: Sip Trunk Password
          description: Password for SIP trunk authentication
        inbound_agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Inbound Agent Id
          description: ID of the AI agent handling incoming calls
        outbound_agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Outbound Agent Id
          description: ID of the AI agent used for outbound calls
        sip_infra_region:
          type: string
          enum:
            - global
            - bd
            - bd_link3
          title: Sip Infra Region
          description: >-
            The infrastructure region for SIP routing: 'global' or 'bd'
            (Bangladesh)
          default: global
      type: object
      required:
        - phone_number
      title: GetSIPPhoneNumberResponse
    GetPiaPhoneNumberResponse:
      properties:
        _id:
          type: string
          title: Id
          description: Unique identifier for this phone number record
        provider:
          type: string
          const: pia
          title: Provider
          description: Indicates this is a Pia Platform managed phone number
          default: pia
        phone_number:
          type: string
          title: Phone Number
          description: The phone number in E.164 format (e.g., +14155552671)
        friendly_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Friendly Name
          description: A human-readable label for this phone number
        inbound_agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Inbound Agent Id
          description: ID of the AI agent handling incoming calls
        outbound_agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Outbound Agent Id
          description: ID of the AI agent used for outbound calls
      type: object
      required:
        - phone_number
      title: GetPiaPhoneNumberResponse
    GetTwilioPhoneNumberResponse:
      properties:
        _id:
          type: string
          title: Id
          description: Unique identifier for this phone number record
        provider:
          type: string
          const: twilio
          title: Provider
          description: Indicates this is a direct Twilio integration phone number
          default: twilio
        phone_number:
          type: string
          title: Phone Number
          description: >-
            The phone number in E.164 format, including country code (e.g.,
            +14155552671)
        friendly_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Friendly Name
          description: A human-readable label for this phone number
        twilio_account_sid:
          anyOf:
            - type: string
            - type: 'null'
          title: Twilio Account Sid
          description: The Twilio Account SID used for API authentication
        twilio_auth_token:
          anyOf:
            - type: string
            - type: 'null'
          title: Twilio Auth Token
          description: The Twilio Auth Token used for API authentication
        inbound_agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Inbound Agent Id
          description: ID of the AI agent handling incoming calls
        outbound_agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Outbound Agent Id
          description: ID of the AI agent used for outbound calls
      type: object
      required:
        - phone_number
      title: GetTwilioPhoneNumberResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````