With SIP-connected audio, Zoom establishes a SIP trunk (a network connection specifically designed to make and deliver phone calls) over a direct and private connection between the customer’s network and the Zoom cloud. Meeting participants that dial into a meeting or have the meeting call them, and are On-Net from the perspective of the customers' IP telephony network, will be connected over this trunk rather than over the PSTN.
Use this API to assign internal numbers to a sub account.Prerequisites:
Pro or a higher account with SIP Connected Audio plan enabled.
The account must be a master account Scopes:sip_trunk:master Rate Limit Label:Light
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request POST 'http://api.zoom.us/v2/accounts//sip_trunk/numbers'
响应示例响应示例
201 - 示例 1
null
请求参数
Path 参数
accountId
string
必需
Unique Identifier of the sub account.
Body 参数multipart/form-data
phone_numbers
array[string]
可选
Phone number(s) to be assigned to the sub account.
返回响应
🟢201**HTTP Status Code:** `201` **Created**<br>
Numbers assigned successfully.
application/json
Body
No schema defined
🟠400**HTTP Status Code:** `400` **Bad Request**<br>
**Error Code:** `2100`<br>
This sub account has no sip trunk plan.<br><br>
**Error Code:** `400`<br>
This number does not belong to master account.
🟠404**HTTP Status Code:** `404` **Not Found**<br><br>
**Error Code:** `2001`<br>
This account does not exist or does not belong to this master account.<br>
This account does not exist or does not belong to you.