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

# Get phone number

> Fetch a single registered phone number by id, scoped to the caller's workspace. Scope `phone_numbers:read`.



## OpenAPI

````yaml /api-reference/openapi.json get /phone-numbers/{phone_number_id}
openapi: 3.1.0
info:
  title: Lehar API
  version: v0
  description: >-
    Customer-facing REST API for the Lehar voice-AI platform. Platform-admin
    endpoints are intentionally excluded from this reference. Regenerate with
    `npm run sync:openapi`.
servers:
  - url: https://api.lehar.ai/ca/api/v0
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /phone-numbers/{phone_number_id}:
    get:
      tags:
        - Phone Numbers
      summary: Get phone number
      description: >-
        Fetch a single registered phone number by id, scoped to the caller's
        workspace. Scope `phone_numbers:read`.
      operationId: get_phone_number_ca_api_v0_phone_numbers__phone_number_id__get
      parameters:
        - name: phone_number_id
          in: path
          required: true
          description: The phone number id.
          schema:
            type: string
      responses:
        '200':
          description: The phone number.
          content:
            application/json:
              example:
                id: pn_a1b2c3d4
                number: '+919876543210'
                display_name: Sales line
                source: byo_trunk
                sip_trunk_id: trunk_x1y2z3
                sip_trunk_name: Acme SIP
                status: active
                outbound_enabled: true
                inbound_enabled: false
                inbound_agent_id: null
                provider: acme-telecom
                metadata: {}
                created_at: '2026-09-01T12:00:00Z'
                updated_at: '2026-09-01T12:00:00Z'
        '401':
          description: Authentication required.
          content:
            application/json:
              example:
                error:
                  code: unauthorized
                  message: Authentication required
        '403':
          description: Caller lacks the required scope.
          content:
            application/json:
              example:
                error:
                  code: forbidden
                  message: Scope 'phone_numbers:read' is required
        '404':
          description: Phone number not found in this workspace.
          content:
            application/json:
              example:
                error:
                  code: not_found
                  message: Phone number not found
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
    BearerAuth:
      type: http
      scheme: bearer

````