Get Trunk
GET https://{{host}}/v3/trunks/:id
Returns trunks owned by the account. Several type of trunks can be retrieved: SIP, PSTN, H323, IAX2.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
include | null | Comma-separated values of include parameter. | |
The response will include a top-level object relationships with associated data under the appropriate resource key. | |||
Details in Inclusion of Related Resources Article. |
Allowed values:
trunk_group - Trunk Group Object
pop - POP Object *** |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
Content-Type | string | ||
Api-Key | string |
RESPONSES
status: OK
{"data":{"id":"f9bf1d5c-bbd4-4739-9fd3-8ae162f2bc2b","type":"trunks","attributes":{"priority":1,"capacity_limit":18,"weight":65535,"name":"Office H323","cli_format":"e164","cli_prefix":"+1","description":null,"ringing_timeout":null,"created_at":"2017-06-25T08:21:41.795Z","configuration":{"type":"h323_configurations","attributes":{"dst":"1xxxxxxxxx","host":"example.com","port":null,"codec_ids":[9,6]}}},"relationships":{"trunk_group":{"links":{"self":"https://api.didww.com/v3/trunks/f9bf1d5c-bbd4-4739-9fd3-8ae162f2bc2b/relationships/trunk_group","related":"https://api.didww.com/v3/trunks/f9bf1d5c-bbd4-4739-9fd3-8ae162f2bc2b/trunk_group"}},"pop":{"links":{"self":"https://api.didww.com/v3/trunks/f9bf1d5c-bbd4-4739-9fd3-8ae162f2bc2b/relationships/pop","related":"https://api.didww.com/v3/trunks/f9bf1d5c-bbd4-4739-9fd3-8ae162f2bc2b/pop"}}}},"meta":{"api_version":"2021-04-19"}}