List SIP trunks
GET
/accounts/{accountId}/sip_trunk/trunks
SIP Connected Audio
Use this API to list all the SIP trunks assigned to a master account or a sub account of the master account. To retrieve SIP trunks assigned to a sub account, provide the account ID of the sub account in the
accountId
path parameter. To retrieve SIP trunks of a master account, provide me
as the value of the accountId
path parameter. Scope:
sip_trunk:read:admin
Prerequisites:
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://api.zoom.us/v2/accounts//sip_trunk/trunks'
响应示例响应示例
200 - response
{
"sip_trunks": [
{
"dnis": "90001258",
"id": "268",
"name": "test1",
"number_prefix": "0",
"sip_server_address": "111.111.1.1"
},
{
"dnis": "80001748",
"id": "281",
"name": "test2",
"number_prefix": "0",
"sip_server_address": "111.111.1.34"
}
],
"total_records": 1
}
请求参数
Path 参数
accountId
string
必需
me
as the value of this field.返回响应
修改于 2024-04-24 09:06:48