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

# Get Trunk

> Fetch a single SIP trunk by id

Fetch a single SIP trunk by its `id`. Only trunks owned by your organization are
returned - anything else is `404`. Secrets are masked.

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

### Path parameters

| Name | Type    | Required | Description |
| ---- | ------- | -------- | ----------- |
| id   | integer | Yes      | Trunk id    |

<ResponseExample>
  ```json 200 theme={null}
  {
    "status_code": 200,
    "message": "Trunk 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"
    }
  }
  ```

  ```json 404 theme={null}
  { "status_code": 404, "message": "Trunk not found." }
  ```
</ResponseExample>

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


## OpenAPI

````yaml GET /api/v2/platform/telephony/trunks/{id}/
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/{id}/:
    get:
      tags:
        - Trunks
      summary: Get Trunk
      operationId: getTrunk
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            example: 12
        - $ref: '#/components/parameters/OrgHandle'
      responses:
        '200':
          description: Trunk detail (secrets masked)
          content:
            application/json:
              example:
                status_code: 200
                message: Trunk 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'
        '404':
          description: Trunk not found
          content:
            application/json:
              example:
                status_code: 404
                message: Trunk not found.
      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>'

````