> ## 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.

# Get phone number

> Returns one phone number with its gateways.



## OpenAPI

````yaml /api-reference/rest/openapi.yaml get /v2/sip/phone-numbers/{number}
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/{number}:
    get:
      tags:
        - Phone numbers
      summary: Get phone number
      description: Returns one phone number with its gateways.
      parameters:
        - name: number
          in: path
          required: true
          description: >-
            The number in E.164, not its id. URL-encode the `+` as `%2B` if your
            client doesn't.
          schema:
            type: string
          example: '+14155550100'
      responses:
        '200':
          description: The number and its gateways.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneNumberWithGateways'
        '404':
          description: The number isn't yours or is deleted.
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'
    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
  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.