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

# List Trunks

> List your organization's SIP trunks

List the SIP trunks (carrier credentials) owned by your organization, newest first.
Secrets (`auth_password`) are masked in the response.

<Note>
  **Prerequisites:** API Token + Org-Handle. See [Authentication](/api/get-started/authentication).
</Note>

### Headers

| Name          | Type   | Required | Description                |
| ------------- | ------ | -------- | -------------------------- |
| Authorization | string | Yes      | `Token <your-api-key>`     |
| Org-Handle    | string | Yes      | Organization domain handle |

### Trunk object fields

| Field          | Type    | Description                                |
| -------------- | ------- | ------------------------------------------ |
| id             | integer | Trunk id (use in attach / detach / delete) |
| name           | string  | Display name                               |
| sip\_url       | string  | Carrier SIP URL / host                     |
| transport      | string  | `tcp`, `udp`, or `tls`                     |
| port           | string  | SIP port (default `5060`)                  |
| auth\_username | string  | SIP auth username (nullable)               |
| auth\_password | string  | Masked - only the last 4 chars shown       |
| allowed\_ips   | string  | Comma-separated source-IP allow-list       |
| active         | boolean | Whether the trunk is active                |
| org\_handle    | string  | Owning organization handle                 |

<ResponseExample>
  ```json 200 theme={null}
  {
    "status_code": 200,
    "message": "Trunks fetched successfully.",
    "data": [
      {
        "id": 12,
        "name": "Acme Primary Trunk",
        "sip_url": "sip:sip.acme-voice.com",
        "transport": "tcp",
        "port": "5060",
        "auth_username": null,
        "auth_password": null,
        "allowed_ips": "",
        "active": true,
        "org_handle": "acme.co"
      }
    ]
  }
  ```
</ResponseExample>

```bash cURL theme={null}
curl -s "https://unpod.ai/api/v2/platform/telephony/trunks/" \
  -H "Authorization: Token <your-api-key>" \
  -H "Org-Handle: <your-org-handle>"
```


## OpenAPI

````yaml GET /api/v2/platform/telephony/trunks/
openapi: 3.0.3
info:
  title: Unpod API
  description: REST API for Unpod Voice AI Platform
  version: 2.0.0
servers:
  - url: https://unpod.ai/
    description: QA
  - url: https://unpod.ai/
    description: Production
security: []
tags:
  - name: Organisation
  - name: Spaces
  - name: Agents
  - name: Tasks
  - name: Runs
  - name: Call Logs
  - name: Analytics
  - name: Providers
  - name: Bridges
  - name: Numbers
  - name: Trunks
  - name: Telephony
  - name: Billing
paths:
  /api/v2/platform/telephony/trunks/:
    get:
      tags:
        - Trunks
      summary: List Trunks
      operationId: listTrunks
      parameters:
        - $ref: '#/components/parameters/OrgHandle'
      responses:
        '200':
          description: List of the organization's SIP trunks (secrets masked)
          content:
            application/json:
              example:
                status_code: 200
                message: Trunks fetched successfully.
                data:
                  - id: 12
                    name: Acme Primary Trunk
                    sip_url: sip:sip.acme-voice.com
                    transport: tcp
                    port: '5060'
                    auth_username: null
                    auth_password: null
                    allowed_ips: ''
                    active: true
                    org_handle: acme.co
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
        - TokenAuth: []
components:
  parameters:
    OrgHandle:
      name: Org-Handle
      in: header
      required: true
      schema:
        type: string
        example: unpod.tv
      description: Organization domain handle
  responses:
    Unauthorized:
      description: Unauthorized - Invalid or missing API token
      content:
        application/json:
          example:
            status_code: 401
            message: Authentication credentials were not provided.
  securitySchemes:
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Format: Token <your-api-key>'

````