Get Outbound Trunk#

Description

Returns a single Outbound trunk owned by the account.

Request#

HTTP Method: GET

URI Path: /v3/voice_out_trunks/{id}

URI Query Parameters:

Name

Type

Is Required?

Description

id

string

Yes

Unique ID identifier of the Trunk.

include

string

Optional

Inclusion.

Includes:

Value

Description

DID

DIDs

Examples#

http

1GET /v3/voice_out_trunks/457bf47d-446d-41cd-91c3-dfbda7bf0753 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/457bf47d-446d-41cd-91c3-dfbda7bf0753 -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    "id": "457bf47d-446d-41cd-91c3-dfbda7bf0753",
 7    "type": "voice_out_trunks",
 8    "attributes": {
 9      "allowed_sip_ips": [
10        "0.0.0.0/0"
11      ],
12      "allowed_rtp_ips": [
13        "0.0.0.0/0"
14      ],
15      "allow_any_did_as_cli": true,
16      "status": "active",
17      "on_cli_mismatch_action": "send_original_cli",
18      "name": "Outbound trunk 1",
19      "capacity_limit": 100,
20      "username": "671******",
21      "password": "3k0******",
22      "created_at": "2021-12-15T18:59:28.875Z",
23      "threshold_reached": false,
24      "threshold_amount": "10000.0",
25      "media_encryption_mode": "disabled",
26      "default_dst_action": "allow_all",
27      "dst_prefixes": [],
28      "force_symmetric_rtp": false,
29      "rtp_ping": false,
30      "callback_url": null
31    },
32    "relationships": {
33      "dids": {
34        "links": {
35          "self": "https://api.didww.com/v3/voice_out_trunks/457bf47d-446d-41cd-91c3-dfbda7bf0753/relationships/dids",
36          "related": "https://api.didww.com/v3/voice_out_trunks/457bf47d-446d-41cd-91c3-dfbda7bf0753/dids"
37        }
38      }
39    },
40    "meta": {
41      "spent_amount": "0.0"
42    }
43  },
44  "meta": {
45    "api_version": "2021-12-15"
46  }
47}

Other Responses#

Code

Success

Description

404

No

Not Found

401

No

Unauthorized