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

# Retrieve All Trunks

> Paginated list of all SIP trunks on your Vobiz account - view configurations, monitor rate limits, and manage global SIP trunking resources in one call.

```http theme={null}
GET https://api.vobiz.ai/api/v1/Account/{auth_id}/trunks
```

Returns a paginated list of all trunks associated with your account. Use this endpoint to view trunk configurations, monitor resource usage, and manage multiple trunks.

A trunk is a SIP trunking connection on your Vobiz account. Each item in the list is a full [Trunk object](https://www.vobiz.ai/docs/trunks/trunk-object.md), so one call shows every trunk's direction, status, limits, and transport without a separate request per trunk.

## When to use it

* **Find a `trunk_id`** before you [retrieve](https://www.vobiz.ai/docs/trunks/retrieve-trunk.md), [update](https://www.vobiz.ai/docs/trunks/update-trunk.md), or [delete](https://www.vobiz.ai/docs/trunks/delete-trunk.md) a trunk, or attach [credentials](https://www.vobiz.ai/docs/trunks/credentials/create-credential.md), [IP ACLs](https://www.vobiz.ai/docs/trunks/ip-acl/create-ip-acl.md), and [origination URIs](https://www.vobiz.ai/docs/trunks/origination-uri/create-origination-uri.md) to it.
* **Audit limits** by comparing `concurrent_calls_limit` and `cps_limit` across trunks.
* **Check status** by filtering the list for trunks whose `trunk_status` is not `active`.
* **Review recording and transcription** settings (`recording`, `enable_transcription`, `pii_redaction`) on every trunk at once.

> [!NOTE]
>
> **Authentication required:**
>
> * `X-Auth-ID` - Your account Auth ID
> * `X-Auth-Token` - Your account Auth Token
> * `Content-Type: application/json`

## Query Parameters

| Field | Type | Required | Description |
| - | - | - | - |
| `limit` | integer | No | Number of results per page. Default: `20`. Maximum: `100`. |
| `offset` | integer | No | Number of results to skip for pagination. Default: `0`. Use with `limit` for page navigation. |

## Request

```bash cURL - Default Pagination theme={null}
curl -X GET "https://api.vobiz.ai/api/v1/Account/{auth_id}/trunks" \
  -H "X-Auth-ID: YOUR_AUTH_ID" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```bash cURL - Custom Pagination theme={null}
curl -X GET "https://api.vobiz.ai/api/v1/Account/{auth_id}/trunks?limit=50&offset=0" \
  -H "X-Auth-ID: YOUR_AUTH_ID" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

## Response

Returns a paginated list of trunk objects with metadata about pagination state. The response has two parts:

| Field | Description |
| - | - |
| `meta.limit` | Page size used for this response. |
| `meta.offset` | Number of results skipped. |
| `meta.total` | Total number of trunks on the account. |
| `objects` | Array of trunk objects, each with its `trunk_id`, `name`, `trunk_domain`, `trunk_status`, `trunk_direction`, limits (`concurrent_calls_limit`, `cps_limit`), and transport and recording settings. |

```json Response - 200 OK theme={null}
{
  "meta": {
    "limit": 20,
    "offset": 0,
    "total": 2
  },
  "objects": [
    {
      "trunk_id": "aabbccdd-1234-5678-90ab-cdef12345678",
      "account_id": "MA_XXXXXXXX",
      "name": "Acme Production Trunk",
      "trunk_domain": "aabbccdd-1234-5678-90ab-cdef12345678.sip.vobiz.ai",
      "trunk_status": "active",
      "secure": false,
      "trunk_direction": "outbound",
      "concurrent_calls_limit": 10,
      "cps_limit": 2,
      "credential_uuid": "aabbccdd-1234-5678-90ab-cdef12345679",
      "description": "",
      "transport": "udp",
      "recording": true,
      "enable_transcription": true,
      "pii_redaction": false,
      "webhook_method": "POST",
      "recording_webhook_enabled": false,
      "created_at": "2026-04-22T08:52:02.383938Z",
      "updated_at": "2026-04-29T06:45:15.188437Z"
    },
    {
      "trunk_id": "aabbccdd-1234-5678-90ab-cdef1234567a",
      "account_id": "MA_XXXXXXXX",
      "name": "My Outbound Trunk",
      "trunk_domain": "aabbccdd-1234-5678-90ab-cdef1234567a.sip.vobiz.ai",
      "trunk_status": "active",
      "secure": false,
      "trunk_direction": "inbound",
      "concurrent_calls_limit": 10,
      "cps_limit": 2,
      "primary_uri_uuid": "aabbccdd-1234-5678-90ab-cdef1234567b",
      "description": "",
      "inbound_destination": "aabbccdd-1234-5678-90ab-cdef1234567b",
      "transport": "udp",
      "recording": true,
      "enable_transcription": true,
      "pii_redaction": false,
      "webhook_method": "POST",
      "recording_webhook_enabled": false,
      "created_at": "2026-04-17T10:28:06.112095Z",
      "updated_at": "2026-04-22T05:35:51.255094Z"
    }
  ]
}
```

### Pagination

Use `total` from the `meta` object to calculate the number of pages. To move between pages, keep `limit` fixed and increase `offset` by `limit` each time:

* Page 1 with `limit=10`: `offset=0`
* Page 2 with `limit=10`: `offset=10`
* Page 3 with `limit=10`: `offset=20`

## Trunk fields

Each item in `objects` is a trunk object. Some fields appear only on one direction: the outbound trunk in the example carries `credential_uuid`, and the inbound trunk carries `primary_uri_uuid` and `inbound_destination`.

| Field | Type | Description |
| - | - | - |
| `trunk_id` | string (UUID) | Unique identifier for the trunk. |
| `account_id` | string | Account (`auth_id`) that owns the trunk. |
| `name` | string | Descriptive name for the trunk. |
| `trunk_domain` | string | Auto-generated SIP domain in the form `<uuid>.sip.vobiz.ai`. |
| `trunk_status` | string | Status of the trunk, for example `active` or `inactive`. |
| `secure` | boolean | Whether media is encrypted with SRTP. |
| `trunk_direction` | string | One of `inbound`, `outbound`, or `both`. |
| `concurrent_calls_limit` | integer | Maximum number of simultaneous calls. |
| `cps_limit` | integer | Calls-per-second limit. |
| `description` | string | Optional description of the trunk. |
| `transport` | string | SIP transport protocol: `udp`, `tcp`, or `tls`. |
| `recording` | boolean | Whether call recording is enabled. |
| `enable_transcription` | boolean | Whether call transcription is enabled. |
| `pii_redaction` | boolean | Whether PII redaction is applied to transcripts. |
| `webhook_method` | string | HTTP method used for trunk webhooks, for example `POST`. |
| `recording_webhook_enabled` | boolean | Whether the recording webhook is enabled. |
| `credential_uuid` | string (UUID) | Credential attached to the trunk (outbound trunks). |
| `primary_uri_uuid` | string (UUID) | Primary origination URI (inbound trunks). |
| `inbound_destination` | string | Destination for inbound call routing (inbound trunks). |
| `created_at` | string (ISO 8601) | When the trunk was created (UTC). |
| `updated_at` | string (ISO 8601) | When the trunk was last updated (UTC). |

See [The Trunk Object](https://www.vobiz.ai/docs/trunks/trunk-object.md) for the full reference.

## Related endpoints

| Task | Endpoint |
| - | - |
| Create a trunk | [Create a Trunk](https://www.vobiz.ai/docs/trunks/create-trunk.md) |
| Read one trunk by ID | [Retrieve a Trunk](https://www.vobiz.ai/docs/trunks/retrieve-trunk.md) |
| Change limits or settings | [Update a Trunk](https://www.vobiz.ai/docs/trunks/update-trunk.md) |
| Remove a trunk | [Delete a Trunk](https://www.vobiz.ai/docs/trunks/delete-trunk.md) |
| List a trunk's credentials | [Retrieve All Credentials](https://www.vobiz.ai/docs/trunks/credentials/retrieve-all-credentials.md) |
| List a trunk's IP ACLs | [Retrieve All IP ACLs](https://www.vobiz.ai/docs/trunks/ip-acl/retrieve-all-ip-acls.md) |
| List a trunk's origination URIs | [Retrieve All Origination URIs](https://www.vobiz.ai/docs/trunks/origination-uri/retrieve-all-origination-uris.md) |


## OpenAPI

````yaml GET /api/v1/Account/{auth_id}/trunks
openapi: 3.0.3
info:
  title: Vobiz API
  description: >
    The Vobiz API lets you make calls, manage phone numbers, configure SIP
    trunks, 

    and access account data programmatically.


    **Base URL:** `https://api.vobiz.ai`


    **Authentication:** Most requests require `X-Auth-ID` and `X-Auth-Token`
    headers.

    Selected account endpoints also accept an account access token as a Bearer
    token.

    Obtain account credentials from your [Vobiz
    Console](https://console.vobiz.ai).
  version: '1.0'
  contact:
    email: support@vobiz.ai
    url: https://www.vobiz.ai
servers:
  - url: https://api.vobiz.ai
    description: Production
security:
  - AuthID: []
    AuthToken: []
tags:
  - name: Account
    description: Manage your account details and credentials
  - name: Balance
    description: Retrieve balance and transaction history
  - name: Calls
    description: Make and manage outbound calls
  - name: Live Calls
    description: Retrieve and control in-progress calls
  - name: CDR
    description: Call detail records and history
  - name: Sub-Accounts
    description: Create and manage sub-accounts
  - name: Phone Numbers
    description: Manage phone numbers on your account
  - name: Trunks
    description: Configure SIP trunks for inbound and outbound calling
  - name: Conference
    description: Manage conference calls and members
  - name: Applications
    description: Manage voice and messaging applications with webhook URLs
  - name: Endpoints
    description: Manage SIP endpoints for IP phones, softphones, and SIP clients
  - name: Partner API
    description: >-
      Reseller endpoints for managing customer sub-accounts, balance transfers,
      transactions, CDRs, and DIDs across your partner ecosystem
  - name: Sub-Account KYC
    description: >-
      Per-sub-account KYC verification (PAN, GST, CIN, Aadhaar, DigiLocker) and
      hosted email/redirect KYC sessions. Authenticated as the parent main
      account.
  - name: Sub-Account KYC (Test Mode)
    description: >-
      Mock KYC endpoints that never call the upstream provider. Drive verified /
      failed / pending / error outcomes with magic inputs for integration
      testing.
  - name: Bulk Operations
    description: >-
      Endpoints that act on many records in one request. These accept the
      request, process it in the background, and deliver the result by email.
paths:
  /api/v1/Account/{auth_id}/trunks:
    get:
      tags:
        - Trunks
      summary: List trunks
      description: Retrieve all SIP trunks configured on the account.
      operationId: list-trunks
      parameters:
        - $ref: '#/components/parameters/AuthId'
      responses:
        '200':
          description: List of trunks
          content:
            application/json:
              example:
                meta:
                  limit: 20
                  offset: 0
                  total: 2
                objects:
                  - trunk_id: aabbccdd-1234-5678-90ab-cdef12345678
                    account_id: MA_XXXXXXXX
                    name: My Outbound Trunk
                    trunk_domain: aabbccdd-1234-5678-90ab-cdef12345678.sip.vobiz.ai
                    trunk_status: active
                    secure: false
                    trunk_direction: outbound
                    concurrent_calls_limit: 10
                    cps_limit: 2
                    credential_uuid: 11223344-5566-7788-99aa-bbccddeeff00
                    description: ''
                    transport: udp
                    recording: true
                    enable_transcription: true
                    pii_redaction: false
                    webhook_method: POST
                    recording_webhook_enabled: false
                    created_at: '2026-03-25T08:52:02.383938Z'
                    updated_at: '2026-03-25T08:52:02.383938Z'
                  - trunk_id: 99887766-1234-5678-90ab-cdef12345678
                    account_id: MA_XXXXXXXX
                    name: Acme Production Trunk
                    trunk_domain: 99887766-1234-5678-90ab-cdef12345678.sip.vobiz.ai
                    trunk_status: active
                    secure: false
                    trunk_direction: inbound
                    concurrent_calls_limit: 10
                    cps_limit: 2
                    primary_uri_uuid: 55667788-1234-5678-90ab-cdef12345678
                    description: ''
                    inbound_destination: 55667788-1234-5678-90ab-cdef12345678
                    transport: udp
                    recording: true
                    enable_transcription: true
                    pii_redaction: false
                    pii_entity_types: ''
                    webhook_url: https://webhook.site/example
                    webhook_method: POST
                    recording_webhook_enabled: false
                    created_at: '2026-03-25T10:28:06.112095Z'
                    updated_at: '2026-03-25T10:28:06.112095Z'
              schema:
                type: object
                properties:
                  meta:
                    $ref: '#/components/schemas/TrunkListMeta'
                  objects:
                    type: array
                    items:
                      type: object
                      properties:
                        trunk_id:
                          type: string
                        account_id:
                          type: string
                        name:
                          type: string
                        trunk_domain:
                          type: string
                        trunk_status:
                          type: string
                          enum:
                            - active
                            - suspended
                          description: >-
                            Trunk state as reported in responses - `active` or
                            `suspended`. Requests set it with `enabled`
                            (reported as `active`) or `disabled` (reported as
                            `suspended`).
                        secure:
                          type: boolean
                        trunk_direction:
                          type: string
                        concurrent_calls_limit:
                          type: integer
                        cps_limit:
                          type: integer
                        credential_uuid:
                          type: string
                        description:
                          type: string
                        transport:
                          type: string
                        recording:
                          type: boolean
                        enable_transcription:
                          type: boolean
                        pii_redaction:
                          type: boolean
                        webhook_method:
                          type: string
                        recording_webhook_enabled:
                          type: boolean
                        created_at:
                          type: string
                        updated_at:
                          type: string
                        primary_uri_uuid:
                          type: string
                        inbound_destination:
                          type: string
                        pii_entity_types:
                          type: string
                        webhook_url:
                          type: string
                      required:
                        - trunk_id
                        - account_id
                        - name
                        - trunk_domain
                        - trunk_status
                        - secure
                        - trunk_direction
                        - concurrent_calls_limit
                        - cps_limit
                        - description
                        - transport
                        - recording
                        - enable_transcription
                        - pii_redaction
                        - webhook_method
                        - recording_webhook_enabled
                        - created_at
                        - updated_at
                required:
                  - meta
                  - objects
components:
  parameters:
    AuthId:
      name: auth_id
      in: path
      required: true
      description: Your account Auth ID
      schema:
        type: string
        example: MA_XXXXXX
  schemas:
    TrunkListMeta:
      type: object
      description: >-
        Pagination metadata returned in the `meta` object of the trunk,
        credential, IP ACL and origination URI list endpoints.
      properties:
        limit:
          type: integer
          description: Maximum number of items in `objects` for this response.
          example: 20
        offset:
          type: integer
          description: Zero-based position of the first item in `objects`.
          example: 0
        total:
          type: integer
          description: Total number of items on the account.
          example: 3
      required:
        - limit
        - offset
        - total
  securitySchemes:
    AuthID:
      type: apiKey
      in: header
      name: X-Auth-ID
      description: Your Vobiz account Auth ID
    AuthToken:
      type: apiKey
      in: header
      name: X-Auth-Token
      description: Your Vobiz account Auth Token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.