Get Outbound Trunks#

Returns the collection of outbound trunks.

Request#

HTTP Method: GET

URI Path: /v3/voice_out_trunks

Note

For all returned data attributes, see Outbound Trunk Object.

URI Query Parameters#

Name

Type

Is Required?

Description

include

string

No

Inclusion

filter[<filter_name>]

string, boolean

No

Filtering

fields[voice_out_trunks]

string

No

Sparse fieldsets

sort

string

No

Sorting

pagination

string

No

Pagination

Filters#

Filter Name

Type

Allow Blank

Allow Array

Filters by:

name

string

Yes

Yes

The trunk name field.

name_contains

string

Yes

Yes

The name_contains field.

external_reference_id

string

No

No

The external_reference_id field.

on_cli_mismatch_action

string

Yes

Yes

The on_cli_mismatch_action field. Possible values: reject_call, replace_cli, send_original_cli.

allow_any_did_as_cli

boolean

No

No

The allow_any_did_as_cli field.

status

string

No

No

The status field. Possible values: active, blocked.

threshold_reached

boolean

No

No

The threshold_reached field.

default_dst_action

string

No

No

The default_dst_action field. Possible values: allow_all, reject_all.

media_encryption_mode

string

No

No

The media_encryption_mode field. Possible values: disabled, srtp_sdes, srtp_dtls, zrtp.

authentication_method.type

string

No

No

The authentication_method.type field. Possible values: credentials_and_ip, ip_only, twilio.

emergency_enable_all

boolean

No

No

The emergency_enable_all field.

Sorting#

Value

Sorts by:

name

The name field.

created_at

The created_at field.

allow_any_did_as_cli

The allow_any_did_as_cli field.

threshold_reached

The threshold_reached field.

Includes#

Value

Description

dids

DID Object

emergency_dids

Emergency DID relationship data.

Object Relationships#

Value

Description

dids

DID Object

emergency_dids

Emergency DID relationship data.

Example#

http

1GET /v3/voice_out_trunks HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Api-Key: [API token]

curl

1curl -i -X GET https://api.didww.com/v3/voice_out_trunks -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"

response

  1HTTP/1.1 200 OK
  2Content-Type: application/vnd.api+json
  3
  4{
  5  "data": [
  6    {
  7      "id": "03813615-da15-4e3b-8e0a-3ea64b2585de",
  8      "type": "voice_out_trunks",
  9      "attributes": {
 10        "name": "Outbound trunk Name",
 11        "allowed_rtp_ips": [],
 12        "authentication_method": {
 13          "type": "credentials_and_ip",
 14          "attributes": {
 15            "allowed_sip_ips": [
 16              "0.0.0.0/0"
 17            ],
 18            "tech_prefix": null,
 19            "username": "554******",
 20            "password": "fqe******"
 21          }
 22        },
 23        "allow_any_did_as_cli": true,
 24        "status": "active",
 25        "on_cli_mismatch_action": "send_original_cli",
 26        "capacity_limit": 100,
 27        "threshold_reached": false,
 28        "threshold_amount": "10000.0",
 29        "media_encryption_mode": "disabled",
 30        "default_dst_action": "allow_all",
 31        "dst_prefixes": [],
 32        "emergency_enable_all": false,
 33        "force_symmetric_rtp": false,
 34        "rtp_ping": false,
 35        "rtp_timeout": 30,
 36        "callback_url": null,
 37        "created_at": "2025-04-02T10:00:00.000Z",
 38        "external_reference_id": null
 39      },
 40      "relationships": {
 41        "dids": {
 42          "links": {
 43            "self": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/relationships/dids",
 44            "related": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/dids"
 45          }
 46        },
 47        "emergency_dids": {
 48          "links": {
 49            "self": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/relationships/emergency_dids",
 50            "related": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/emergency_dids"
 51          }
 52        }
 53      }
 54    },
 55    {
 56      "id": "cf2e6377-fcaa-4416-8c8e-acd5f31a427f",
 57      "type": "voice_out_trunks",
 58      "attributes": {
 59        "name": "Outbound trunk Name",
 60        "allowed_rtp_ips": [
 61          "198.51.100.1/32"
 62        ],
 63        "authentication_method": {
 64          "type": "ip_only",
 65          "attributes": {
 66            "allowed_sip_ips": [
 67              "198.51.100.1/32"
 68            ],
 69            "tech_prefix": null
 70          }
 71        },
 72        "allow_any_did_as_cli": true,
 73        "status": "active",
 74        "on_cli_mismatch_action": "send_original_cli",
 75        "capacity_limit": 100,
 76        "threshold_reached": false,
 77        "threshold_amount": "10000.0",
 78        "media_encryption_mode": "disabled",
 79        "default_dst_action": "allow_all",
 80        "dst_prefixes": [],
 81        "emergency_enable_all": true,
 82        "force_symmetric_rtp": false,
 83        "rtp_ping": false,
 84        "rtp_timeout": 30,
 85        "callback_url": null,
 86        "created_at": "2025-04-02T10:00:00.000Z",
 87        "external_reference_id": null
 88      },
 89      "relationships": {
 90        "dids": {
 91          "links": {
 92            "self": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/relationships/dids",
 93            "related": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/dids"
 94          }
 95        },
 96        "emergency_dids": {
 97          "links": {
 98            "self": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/relationships/emergency_dids",
 99            "related": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/emergency_dids"
100          }
101        }
102      }
103    },
104    {
105      "id": "14a0b7fb-845a-44d9-a7dc-ac1620f21e42",
106      "type": "voice_out_trunks",
107      "attributes": {
108        "name": "Outbound trunk Name",
109        "allowed_rtp_ips": null,
110        "authentication_method": {
111          "type": "twilio",
112          "attributes": {
113            "twilio_account_sid": "AC39347AF064AF97E1682C3B7332DAAEE6"
114          }
115        },
116        "allow_any_did_as_cli": true,
117        "status": "active",
118        "on_cli_mismatch_action": "send_original_cli",
119        "capacity_limit": 100,
120        "threshold_reached": false,
121        "threshold_amount": "10000.0",
122        "media_encryption_mode": "disabled",
123        "default_dst_action": "allow_all",
124        "dst_prefixes": [],
125        "emergency_enable_all": false,
126        "force_symmetric_rtp": false,
127        "rtp_ping": false,
128        "rtp_timeout": 30,
129        "callback_url": null,
130        "created_at": "2025-04-02T10:00:00.000Z",
131        "external_reference_id": null
132      },
133      "relationships": {
134        "dids": {
135          "links": {
136            "self": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/relationships/dids",
137            "related": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/dids"
138          }
139        },
140        "emergency_dids": {
141          "links": {
142            "self": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/relationships/emergency_dids",
143            "related": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/emergency_dids"
144          }
145        }
146      }
147    }
148  ],
149  "meta": {
150    "total_records": 3,
151    "api_version": "2026-04-16"
152  },
153  "links": {
154    "first": "https://api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50",
155    "last": "https://api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50"
156  }
157}