创建空任务 请求URL https://{domain}/hangupSms/task/empty 请求方式 POST 请求参数 参数名 必选 类型 说明 appid 是 string 鉴权 appid accesskey 是 string 鉴权 accesskey name 是 string 任务名称 destnumber 否 string 接收验证码的手机号不需要加国别号码,例如完整号码为: 00628123456789 ,则直接以  8123456789  请求即可。多个号码用“,”连接,最大不超过5000个号码 voicefile 是 string 可以在线访问的录音文件地址 mode 否 string 只需要纯外呼的时候填写,取值为ivr。默认为挂机短信模式 max_attempt int 否 最大重呼次数(包含首轮呼叫) interval int 否 多轮呼叫间隔时间 秒, 默认值60秒 waittime int 否 呼叫等待时间,默认60s (秒) conntime int 否 呼叫通话时间, 播放多久后自动结束,默认60s (秒) answered_sms_tpl 可选,但不能与 no_answer_sms_tpl 同时为空,mode为ivr模式可不填 string 用户接听使用的短信模板id answered_variables 否 object 接听短信模板变量,JSON对象。key 对应 answered_sms_tpl 模板里的 {xxx} 占位符,如 {"name":"Alice","order_no":"OD001","amount":"100.99"}。模板无占位符时可不传 no_answer_sms_tpl 可选,但不能与 answered_sms_tpl 同时为空,mode为ivr模式可不填 string 用户未接听使用的短信模板id no_answer_variables 否 object 未接听短信模板变量,JSON对象。key 对应 no_answer_sms_tpl 模板里的 {xxx} 占位符,如 {"name":"Alice","order_no":"OD001","amount":"100.99"}。模板无占位符时可不传 start_time 是 string 任务开始时间(北京时间) 请求示例 { "appid":"xxxxxx", "accesskey":"xxxxx", "name":"test1132383", "start_time":"2026-10-20 15:53:00", "voicefile":"https://xxxx/offlineSound/playback?filename=Tips.mp3", "destnumber":"822xxx998", "interval": 5, "max_attempt": 3, "waittime": 60, "conntime": 35, "answered_sms_tpl":"", "answered_variables": { "name": "Alice", "order_no": "OD20260325001", "amount": "100.99" } "no_answer_sms_tpl":"81", "na_answer_variables": { "name": "Alice", "order_no": "OD20260325001", "amount": "100.99" } } 返回示例 { "code": 0, "msg": "operation succeeded", "data": { "task_id": "4556", "count": 1 } } 返回参数说明 参数名 类型 说明 code int 返回码 0 成功 其他为失败 msg string 返回信息 data object 返回数据