API開發文檔

歡迎流覽我們的API開發文檔!

進行呼叫

POST

要進行呼叫,向服務器髮送HTTP請求

/api/calls

權限:call

Header
字段類型描述
Content-Type字符串應用或JSON
參數
字段類型描述
type字符串“錄音廣播”或“坐席”
from字符串坐席賬號編號
to字符串呼叫目標,以國家區號開頭




{
     "type": "announcement",
     "audio": "announcement.mp3",
     "from": "16472345678",
     "to": "16657489932"
 }
 {
     "type": "agent",
     "from": "agent1",
     "to": "16657489932"
 }




成功
HTTP/1.1 201 Created
 {
     "id": "c0e3dd4c-4a79-5a64-9da4-207835d11cec"
 }
錯誤 4XX
名稱描述
AgentNotFound未找到該坐席
錯誤
HTTP/1.1 400 Bad Request
 {
     "error": "AgentNotFound"
 }

标签:
Table of Contents