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