API開發文檔

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

獲取全部訂閱

GET

/api/subscriptions

權限:訂閱

Header
字段類型描述
Content-Type字符串應用或JSON
成功 200
字段類型描述
event字符串事件類型,值爲以下數值之一 [“NewCall”, “EnterQueue”, “Ringing”, “Answer”, “Hangup”, “GetSMS”]
id字符串唯一編號
type字符串[“json”, “slack”, “slack_debug”]
url字符串回調url
成功響應
HTTP/1.1 200 OK
 [{
     "event": "Answer",
     "id": "00c8c9d716800419549f27166397925b",
     "url": "http://example.com/callback/answer"
 },
 {
     "event": "NewCall",
     "id": "00c8c9d716800419549f271663975995",
     "type": "slack",
     "url": "https://hooks.slack.com/services/M9HG5EF/M9HG5EF/2RqG3GsC5996HyqywGmsUi51M"
 },
 {
     "event": "Ringing",
     "id": "00c8c9d716800419549f271663978f5b",
     "url": "http://example.com/callback/ringing"
 }]

标签:
Table of Contents