Query ITSP of Shared Trunks
Query the information of supported ITSP for creating trunks.
Request URL
GET {base_url}/dm/open_api/v1/shared_trunk/itsp
Request parameters
Headers
| Parameter | Required | Type | Description |
|---|---|---|---|
| Authorization | Yes | String | Pass the access token in the header. Format: Bearer {access_token}. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| data | Object <Details> | The detailed information. |
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
| status | String | Request result:
|
| time | Long | The response time. Note: The YCM API response returns a
timestamp, you can convert the timestamp to detailed
date and time as needed. For more information, see Convert Timestamp to Local Date and Time.
|
Details
| Parameter | Type | Description |
|---|---|---|
| itspInfos | Array <ITSP_Info> | The information list of the ITSP. |
- ITSP_Info
-
Parameter Type Description id Integer The ID of the ITSP. country String The country where the ITSP belongs to. name String The name of the ITSP.
Example
Request example
GET /dm/open_api/v1/shared_trunk/itsp HTTP/1.1
Host: ycm.yeastar.com
Authorization: Bearer ******
Response example
HTTP/1.1 200 OK
{
"data": {
"itspInfos": [
{
"id": 111,
"country": "United States",
"name": "Aasani"
},
{
"id": 112,
"country": "United States",
"name": "Bandwidth"
},
{
"id": 113,
"country": "United States",
"name": "Callcentric"
},
{
"id": 114,
"country": "United States",
"name": "Clearfly Communications"
},
{
"id": 115,
"country": "United States",
"name": "Flowroute(east-nj)"
},
{
"id": 116,
"country": "United States",
"name": "Flowroute(east-va)"
},
... ...
]
},
"requestId": "8460e861f8011a0ab184b0f427d5657d",
"status": "Success",
"time": 1747031425
}