Latest

Retrieve all Trunks

Retrieves the details of all trunks.

API Endpoint

GET https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Trunk/

Arguments

trunk_status string

Used to filter trunks based on trunk status.
Allowed values: enabled, disabled

secure boolean

Used to filter trunks based on whether they’re secure.
Allowed values: true, false

trunk_directionstring

Used to filter trunks based on trunk direction.
Allowed values: inbound, outbound

ipacl_uuidstring

Used to filter trunks based on IP access control list. A valid ipacl_uuid needs to be passed.

credential_uuidstring

Used to filter trunks based on credentials. A valid credential_uuid needs to be passed.

primary_uri_uuidstring

Used to filter trunks based on primary URI. A valid primary_uri_uuid needs to be passed.

fallback_uri_uuidstring

Used to filter trunks based on fallback URI. A valid fallback_uri_uuid needs to be passed.

limitinteger

Used to display the number of results per page. The maximum number of results that can be fetched is 20. Defaults to 20.

offsetinteger

Denotes the number of value items by which the results should be offset. Defaults to 0.

Returns

A dictionary with an objects property that contains an array of trunk objects.

Response

{
  "api_id": "a04ad809-3b78-4bbe-9baf-acfc7800b10f",
  "meta": {
    "limit": 2,
    "offset": 0,
    "total_count": 10,
    "previous": null,
    "next": "v1/Account/{auth_id}/Zentrunk/Trunk/?limit=2&offset=2"
  },
  "objects": [
    {
      "name": "trunk_name_1",
      "trunk_id":"21784177241578",
      "trunk_domain":"21784177241578.zt.plivo.com"
      "trunk_status": "enabled",
      "secure": true,
      "trunk_direction": "outbound",
      "ipacl_uuid": "90b6eb07-796c-4d86-a4fd-44ed11667ddb",
      "credential_uuid": "eb07-796c-4d86-a4fd-44ed11667ddb",
      "primary_uri_uuid": null,
      "fallback_uri_uuid": null
    },
    {
      "name": "trunk_name_2",
      "trunk_id":"31784177241575",
      "trunk_domain":"31784177241575.zt.plivo.com"
      "trunk_status": "enabled",
      "secure": false,
      "trunk_direction": "inbound",
      "ipacl_uuid": null,
      "credential_uuid": null,
      "primary_uri_uuid": "90b6eb07-796c-4d86-a4fd-44ed11667ddb",
      "fallback_uri_uuid": "796c-4d86-a4fd-44ed11667ddb-eb07"
    }
  ]
}
1
2
curl -i --user AUTH_ID:AUTH_TOKEN \
    https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Trunk/