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

# List phone numbers

> Lists your phone numbers with their gateways, newest first.



## OpenAPI

````yaml /api-reference/rest/openapi.yaml get /v2/sip/phone-numbers
openapi: 3.1.0
info:
  title: Zero Runtime REST API
  version: '1.0'
  description: >-
    Create, configure, version and deploy agents, and wire SIP telephony to
    them.
servers:
  - url: https://api.zeroruntime.ai
security:
  - token: []
tags:
  - name: Agents
  - name: Versions
  - name: Deployment
  - name: Phone numbers
  - name: Routing rules
  - name: Calls
  - name: Batch calls
  - name: Knowledge bases
  - name: Knowledge base folders
paths:
  /v2/sip/phone-numbers:
    get:
      tags:
        - Phone numbers
      summary: List phone numbers
      description: Lists your phone numbers with their gateways, newest first.
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            default: 1
        - name: perPage
          in: query
          description: Clamped to 100.
          schema:
            type: integer
            default: 20
            maximum: 100
        - name: search
          in: query
          description: Case-insensitive match on name or E.164.
          schema:
            type: string
      responses:
        '200':
          description: A page of numbers with their gateways.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/PhoneNumberWithGateways'
                  pagination:
                    type: object
                    properties:
                      page:
                        type: integer
                        example: 1
                      perPage:
                        type: integer
                        example: 20
                      total:
                        type: integer
                        example: 2
                      totalPages:
                        type: integer
                        example: 1
        '400':
          $ref: '#/components/responses/Message'
components:
  schemas:
    PhoneNumberWithGateways:
      type: object
      properties:
        phoneNumber:
          $ref: '#/components/schemas/PhoneNumber'
        inbound:
          oneOf:
            - $ref: '#/components/schemas/Gateway'
            - type: 'null'
          description: '`null` when no inbound gateway is attached.'
        outbound:
          oneOf:
            - $ref: '#/components/schemas/Gateway'
            - type: 'null'
          description: '`null` when no outbound gateway is attached.'
    PhoneNumber:
      type: object
      properties:
        phoneNumberId:
          type: string
        e164:
          type: string
          example: '+14155550100'
        countryCode:
          type: string
          example: US
        provider:
          type: string
          example: other
        origin:
          type: string
          example: SIP Configured
        status:
          type: string
          example: ACTIVE
        name:
          type: string
          example: Support SIP
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Gateway:
      type: object
      properties:
        id:
          type: string
        address:
          type:
            - string
            - 'null'
        numbers:
          type: array
          items:
            type: string
        mediaEncryption:
          $ref: '#/components/schemas/MediaEncryption'
        transport:
          $ref: '#/components/schemas/Transport'
        geoRegion:
          type: string
          example: us002
        auth:
          $ref: '#/components/schemas/SipAuth'
    Message:
      type: object
      properties:
        message:
          type: string
    MediaEncryption:
      type: string
      enum:
        - enable
        - disable
      default: disable
    Transport:
      type: string
      enum:
        - udp
        - tcp
        - tls
      default: tls
    SipAuth:
      type: object
      description: Stored only when both fields are present.
      properties:
        username:
          type: string
        password:
          type: string
  responses:
    Message:
      description: Request failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
  securitySchemes:
    token:
      type: apiKey
      in: header
      name: Authorization
      description: Your API token, sent raw (no `Bearer` prefix).
      x-default: <auth-token>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.