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

# List SIP trunks

> List the workspace's connected BYO SIP trunks, optionally filtered by `status`. SIP credentials are never returned — only `auth_username` and the last four digits of the password (`auth_password_last4`) are exposed. Scope `phone_numbers:read`.



## OpenAPI

````yaml /api-reference/openapi.json get /phone-numbers/sip-trunks
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/sip-trunks:
    get:
      tags:
        - Phone Numbers
      summary: List SIP trunks
      description: >-
        List the workspace's connected BYO SIP trunks, optionally filtered by
        `status`. SIP credentials are never returned — only `auth_username` and
        the last four digits of the password (`auth_password_last4`) are
        exposed. Scope `phone_numbers:read`.
      operationId: list_sip_trunks_ca_api_v0_phone_numbers_sip_trunks_get
      parameters:
        - name: limit
          in: query
          required: false
          description: Maximum rows to return.
          schema:
            type: integer
            default: 20
            minimum: 0
            maximum: 100
        - name: offset
          in: query
          required: false
          description: Number of rows to skip.
          schema:
            type: integer
            default: 0
            minimum: 0
        - name: status
          in: query
          required: false
          description: Filter by trunk status.
          schema:
            type: string
            enum:
              - active
              - archived
      responses:
        '200':
          description: Paginated list of SIP trunks.
          content:
            application/json:
              example:
                data:
                  - id: trunk_x1y2z3
                    name: Acme SIP
                    kind: byo
                    provider: acme-telecom
                    sip_address: sip.acme.example.com
                    sip_transport: tls
                    auth_username: acme_user
                    auth_password_last4: '7788'
                    livekit_outbound_trunk_id: ST_abc123
                    status: active
                    created_at: '2026-09-01T12:00:00Z'
                    updated_at: '2026-09-01T12:00:00Z'
                pagination:
                  limit: 20
                  offset: 0
                  total: 1
        '400':
          description: Missing customer context, or invalid pagination parameters.
          content:
            application/json:
              example:
                error:
                  code: invalid_request
                  message: limit and offset must be non-negative integers
        '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: Customer context does not resolve to a known customer.
          content:
            application/json:
              example:
                error:
                  code: not_found
                  message: Customer not found
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
    BearerAuth:
      type: http
      scheme: bearer

````