Get Inbound Trunk Groups#

Returns a collection of Trunk Groups.

Request#

HTTP Method: GET

URI Path: /v3/voice_in_trunk_groups

Note

For all returned data attributes, see Trunk Group Object.

URI Query Parameters#

Name

Type

Is Required?

Description

include

string

No

Inclusion

filter[<filter_name>]

string

No

Filtering

fields[voice_in_trunk_groups]

string

No

Sparse fieldsets

sort

string

No

Sorting

Includes#

Value

Description

voice_in_trunks

Trunk Object

Filters#

Filter Name

Type

Allow Blank

Allow Array

Filters by:

external_reference_id

string

No

No

The external_reference_id field.

Sorting#

Value

Sorts by:

name

The name field.

created_at

The created_at field.

capacity_limit

The capacity_limit field.

Examples#

http

1GET /v3/voice_in_trunk_groups 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_in_trunk_groups -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": "65b401cb-42f5-4911-877d-dc317a46b478",
 8      "type": "voice_in_trunk_groups",
 9      "links": {
10        "self": "https://api.didww.com/v3/voice_in_trunk_groups/65b401cb-42f5-4911-877d-dc317a46b478"
11      },
12      "attributes": {
13        "created_at": "2017-06-25T14:56:31.513Z",
14        "external_reference_id": null,
15        "name": "Common Group",
16        "capacity_limit": 69
17      },
18      "relationships": {
19        "voice_in_trunks": {
20          "links": {
21            "self": "https://api.didww.com/v3/voice_in_trunk_groups/65b401cb-42f5-4911-877d-dc317a46b478/relationships/voice_in_trunks",
22            "related": "https://api.didww.com/v3/voice_in_trunk_groups/65b401cb-42f5-4911-877d-dc317a46b478/voice_in_trunks"
23          }
24        }
25      },
26      "meta": {
27        "trunks_count": 1
28      }
29    },
30    {
31      "id": "72a60b4a-affb-46c7-8a8a-7e042c7611e8",
32      "type": "voice_in_trunk_groups",
33      "links": {
34        "self": "https://api.didww.com/v3/voice_in_trunk_groups/72a60b4a-affb-46c7-8a8a-7e042c7611e8"
35      },
36      "attributes": {
37        "created_at": "2017-06-25T14:56:31.513Z",
38        "external_reference_id": null,
39        "name": "Custom Group",
40        "capacity_limit": 50
41      },
42      "relationships": {
43        "voice_in_trunks": {
44          "links": {
45            "self": "https://api.didww.com/v3/voice_in_trunk_groups/72a60b4a-affb-46c7-8a8a-7e042c7611e8/relationships/voice_in_trunks",
46            "related": "https://api.didww.com/v3/voice_in_trunk_groups/72a60b4a-affb-46c7-8a8a-7e042c7611e8/voice_in_trunks"
47          }
48        }
49      },
50      "meta": {
51        "trunks_count": 0
52      }
53    }
54  ],
55  "meta": {
56    "total_records": 2
57  },
58  "links": {
59    "first": "https://api.didww.com/v3/voice_in_trunk_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50",
60    "last": "https://api.didww.com/v3/voice_in_trunk_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50"
61  }
62}

Other Responses#

Code

Success

Description

401

No

Unauthorized