创建账号
更新时间: 2022/08/19 09:07:59
创建账号
URL
- 请求方法:POST
- URL:
http://voip-host/api/v1/voip/account/sips
请求参数
参数名称 | 类型 | 是否必选 | 示例 | 描述 |
appId | string | 必填 | eca23f68c66d4acfceee77c200200359 | 应用APP ID。 |
返回参数
参数名称 | 类型 | 示例 | 描述 |
code | int | 0 | 状态码。 |
message | string | OK | 请求成功或者失败描述信息。 |
data | string | {"tenant":"cleverdj", . . . } | 查询到的数据信息,json格式返回。 |
sipAccount | string | 15700084166 | sip内部通信帐号。 |
seatId | string | 266080 | SIP子账号,业务坐席Id。 |
sipPassword | string | gsjieiob | sip内部通信密码。 |
appId | string | d0ac282f-7e9e-4335-ab02-fc96be9d277d | 应用ID,全局唯一的uuida。 |
示例
请求示例
{
"appId": "d0ac282f-7e9e-4335-ab02-fc96be9d277d"
}
正常返回示例
{
"code": 0,
"message": "OK",
"data": {
"sipAccount": "266080100000001",
"sipPassword": "gsjieiob",
"dispNumber": "266080100000001",
"appId": "d0ac282f-7e9e-4335-ab02-fc96be9d277d"
}
}
错误码
-
body 中的错误码(code)
该接口在 HTTP Body 中返回错误码(code),错误码列表请参考业务错误码。
此文档是否对你有帮助?