发送短信

接口说明

  • 请求地址: https://api.aiofish.com/rest/isms/sendIsms
  • 请求方式: POST

请求参数

参数名必填参数类型说明
appKeyString系统分配
tsString时间戳
tplIdString模板ID
mobilesArray[String]手机号码列表,号码需要加国际电话区号
uuidString用户端消息ID
scheduleTimeString定时发送时间,必须大于当前时间。格式:yyyy-MM-dd HH:mm:ss

Curl样例

curl  --request POST 'https://api.aiofish.com/rest/isms/sendIsms' \
--header 'x-sign: 39dd91319d32b36def6272e1b9' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appKey": "test11",
    "ts": "1638805414651",
    "content": "hello! test sms",
    "mobiles": [
        "86180******43"
    ]
}'

响应字段

字段名字段类型说明
codeString错误码。success:成功,其他失败
msgIdString消息ID。后续推送状态报告使用此ID