Get Trunk by SID
This request returns data for a trunk, targeted by trunk and trunk group secure ID.
get | /trunk_groups/{trunk_group_sid}/trunks/{trunk_sid} |
Sample
A sample GET request to get the trunk by secure ID:
curl -X GET \
'https://api.carrierx.com/core/v2/trunk_groups/138ed522-6633-405b-b58d-55eb0d262e32/trunks/aed1c137-8cbf-417c-8c41-e181f425826b' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'
Response
200
status code with a serialized copy of the Trunk object:
{
"acls": []
"allow_forward": "disabled",
"allow_transfer": false,
"asn_mode": "disable",
"call_type": "regular",
"codec": null,
"endpoint_sid": "844346ef-93e9-4fa8-a4ab-e3015af94573",
"in_capacity": 0,
"in_identity_format": "passthrough",
"in_identity_mode": "passthrough",
"in_rfc_4694_mode": "cut_all",
"location_sid": null,
"name": "N/A",
"out_capacity": 0,
"out_identity_mode": "passthrough",
"out_rfc_4694_mode": "cut_all",
"priority": 0,
"relay_sip_headers": [],
"transformations": [],
"trunk_sid": "aed1c137-8cbf-417c-8c41-e181f425826b",
"weight": 0
}
This request is enabled for Field Filtering.
Required Scopes
To get information about a Trunk object, the partner must have one of the following scopes enabled:
trunk_groups.trunks.manage
trunk_groups.trunks.read
Path Arguments
Parameter | Data Type | Description |
---|---|---|
trunk_group_sid required | string | The trunk group secure ID. |
trunk_sid required | string | The trunk secure ID. |