SparkTG

拨打电话 文档

拨打电话

v1.0

拨打电话

发起外呼通话

通话管理v1.01 个端点

概述

拨打电话 : POST : /calls

认证

基本认证

方法

POST

参数

6 个参数

响应

JSON 格式

可用端点

POST/calls

关键参数

number(Integer)

要拨打的客户号码

service-id(Integer)

服务 ID

country-code(Integer)

仅在特殊或定制 API 中需要,此时由 SparkTG 提供

agent-dial-first(Boolean)

true

recording(Boolean)

true

msg-to-agent(String)

Customer asked to call back

快速示例

使用简单的 cURL 命令试用此 API

基础 API 调用
curl -i -u "username:password" "https://telephonycloud.co.in/api/v1/calls" -d "number=9999999999"
💡 请将 username:password 替换为您的实际凭据

响应预览

此 API 的示例响应

示例响应
{
  "id": "423cdf8c-5663-458a-bc66-a38f2f8f797b"
}...
在“响应”部分查看完整的响应格式