结束语音通话
POST
/openapi/bot/voice-call/stop
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
botId
string
机器人 id
sessionId
string
会话 id
voiceCallTaskId
string
语音通话任务 id
示例
{
"botId": "string",
"sessionId": "string",
"voiceCallTaskId": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://insight.juzibot.com/openapi/bot/voice-call/stop' \
--header 'Content-Type: application/json' \
--data-raw '{
"botId": "string",
"sessionId": "string",
"voiceCallTaskId": "string"
}'
返回响应
🟢200成功
application/json
Body
code
string
0 即表示成功结束
示例
{
"code": "string"
}