阿里云短信/语音发送控制台

支持短信、语音 TTS、以及短信+语音同时发送。

0. 客户快捷切换

客户只需要调用一个地址:https://tz.zeltree.com/api/send.php

接口不传 type 时,按这里的默认发送类型执行。

1. 基础配置

2. 短信/语音测试发送

3. 客户调用接口

发送接口:https://tz.zeltree.com/api/send.php

`type` 支持:`sms`、`voice`、`both`。不传 `type` 则按默认发送类型执行。

{
  "type": "both",
  "phone": "13800138000",
  "templateParam": {
    "name": "张三",
    "sbname": "设备",
    "datetime": "2026-03-09 16:20:00"
  }
}

日志查询接口:https://tz.zeltree.com/api/logs.php

{
  "limit": 100,
  "phone": "13800138000",
  "operation": "send_event"
}

4. 发送日志

时间 来源 操作 类型 手机号 业务 结果 HTTP 阿里云Code RequestId OutId 说明 详情
2026-03-09 18:38:41 api/send send_event sms 18739601481 alarm_event 成功 200 OK 6E23B600-D844-5446-B8BD-9A9287C039CD 3d601f37b11f4d9cbb20ca42e355dc72 OK
查看
{
    "id": "6a18c16cb2128fb5fc4a7f84",
    "timestamp": 1773052721,
    "time": "2026-03-09 18:38:41",
    "source": "api/send",
    "operation": "send_event",
    "type": "sms",
    "phone": "18739601481",
    "bizType": "alarm_event",
    "ok": true,
    "httpCode": 200,
    "aliyunCode": "OK",
    "aliyunMessage": "OK",
    "requestId": "6E23B600-D844-5446-B8BD-9A9287C039CD",
    "outId": "3d601f37b11f4d9cbb20ca42e355dc72",
    "message": "OK",
    "ip": "8.155.38.55",
    "contactName": "曾七",
    "taskCode": "3d601f37b11f4d9cbb20ca42e355dc72"
}
2026-03-09 18:38:41 api/send send_event sms 18038106714 alarm_event 成功 200 OK A34890D7-E964-5CCD-A6CF-15E92E8C29D3 3d601f37b11f4d9cbb20ca42e355dc72 OK
查看
{
    "id": "86d5934f42325c4d2c27a6b4",
    "timestamp": 1773052721,
    "time": "2026-03-09 18:38:41",
    "source": "api/send",
    "operation": "send_event",
    "type": "sms",
    "phone": "18038106714",
    "bizType": "alarm_event",
    "ok": true,
    "httpCode": 200,
    "aliyunCode": "OK",
    "aliyunMessage": "OK",
    "requestId": "A34890D7-E964-5CCD-A6CF-15E92E8C29D3",
    "outId": "3d601f37b11f4d9cbb20ca42e355dc72",
    "message": "OK",
    "ip": "8.155.38.55",
    "contactName": "刘六",
    "taskCode": "3d601f37b11f4d9cbb20ca42e355dc72"
}
2026-03-09 18:38:41 api/send send_event sms 19240275271 alarm_event 成功 200 OK 81D6982E-454C-52AC-9C01-697C8CC29AA2 3d601f37b11f4d9cbb20ca42e355dc72 OK
查看
{
    "id": "11c0e098f59a9b55493be4ad",
    "timestamp": 1773052721,
    "time": "2026-03-09 18:38:41",
    "source": "api/send",
    "operation": "send_event",
    "type": "sms",
    "phone": "19240275271",
    "bizType": "alarm_event",
    "ok": true,
    "httpCode": 200,
    "aliyunCode": "OK",
    "aliyunMessage": "OK",
    "requestId": "81D6982E-454C-52AC-9C01-697C8CC29AA2",
    "outId": "3d601f37b11f4d9cbb20ca42e355dc72",
    "message": "OK",
    "ip": "8.155.38.55",
    "contactName": "王五",
    "taskCode": "3d601f37b11f4d9cbb20ca42e355dc72"
}
2026-03-09 18:38:40 api/send send_event sms 19200951520 alarm_event 成功 200 OK 5CF00ADF-0711-5D62-A6C7-229807873E32 3d601f37b11f4d9cbb20ca42e355dc72 OK
查看
{
    "id": "6df4fd5e8055c5961e324b44",
    "timestamp": 1773052720,
    "time": "2026-03-09 18:38:40",
    "source": "api/send",
    "operation": "send_event",
    "type": "sms",
    "phone": "19200951520",
    "bizType": "alarm_event",
    "ok": true,
    "httpCode": 200,
    "aliyunCode": "OK",
    "aliyunMessage": "OK",
    "requestId": "5CF00ADF-0711-5D62-A6C7-229807873E32",
    "outId": "3d601f37b11f4d9cbb20ca42e355dc72",
    "message": "OK",
    "ip": "8.155.38.55",
    "contactName": "李四",
    "taskCode": "3d601f37b11f4d9cbb20ca42e355dc72"
}
2026-03-09 18:38:40 api/send send_event sms 19886287923 alarm_event 成功 200 OK EE4DCE08-8297-5379-9F8F-BB823350CCDF 3d601f37b11f4d9cbb20ca42e355dc72 OK
查看
{
    "id": "1ed28c3ccc6d772b652176b3",
    "timestamp": 1773052720,
    "time": "2026-03-09 18:38:40",
    "source": "api/send",
    "operation": "send_event",
    "type": "sms",
    "phone": "19886287923",
    "bizType": "alarm_event",
    "ok": true,
    "httpCode": 200,
    "aliyunCode": "OK",
    "aliyunMessage": "OK",
    "requestId": "EE4DCE08-8297-5379-9F8F-BB823350CCDF",
    "outId": "3d601f37b11f4d9cbb20ca42e355dc72",
    "message": "OK",
    "ip": "8.155.38.55",
    "contactName": "张三",
    "taskCode": "3d601f37b11f4d9cbb20ca42e355dc72"
}
2026-03-09 18:30:29 api/send send_event sms 18739601481 alarm_event 失败 200 isv.TEMPLATE_PARAMS_ILLEGAL E9697E8A-C218-51E2-88B8-33A2D2F0EC6E 0df903b095a44498b46caa84530c2dbb 模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!
查看
{
    "id": "f0c29883af16758054525c29",
    "timestamp": 1773052229,
    "time": "2026-03-09 18:30:29",
    "source": "api/send",
    "operation": "send_event",
    "type": "sms",
    "phone": "18739601481",
    "bizType": "alarm_event",
    "ok": false,
    "httpCode": 200,
    "aliyunCode": "isv.TEMPLATE_PARAMS_ILLEGAL",
    "aliyunMessage": "模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!",
    "requestId": "E9697E8A-C218-51E2-88B8-33A2D2F0EC6E",
    "outId": "0df903b095a44498b46caa84530c2dbb",
    "message": "模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!",
    "ip": "8.155.38.55",
    "contactName": "曾七",
    "taskCode": "0df903b095a44498b46caa84530c2dbb"
}
2026-03-09 18:30:28 api/send send_event sms 18038106714 alarm_event 失败 200 isv.TEMPLATE_PARAMS_ILLEGAL 6658AB02-F4FE-591E-A2A4-F454F90B56DB 0df903b095a44498b46caa84530c2dbb 模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!
查看
{
    "id": "22f4cd29e7a86c98e5a57880",
    "timestamp": 1773052228,
    "time": "2026-03-09 18:30:28",
    "source": "api/send",
    "operation": "send_event",
    "type": "sms",
    "phone": "18038106714",
    "bizType": "alarm_event",
    "ok": false,
    "httpCode": 200,
    "aliyunCode": "isv.TEMPLATE_PARAMS_ILLEGAL",
    "aliyunMessage": "模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!",
    "requestId": "6658AB02-F4FE-591E-A2A4-F454F90B56DB",
    "outId": "0df903b095a44498b46caa84530c2dbb",
    "message": "模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!",
    "ip": "8.155.38.55",
    "contactName": "刘六",
    "taskCode": "0df903b095a44498b46caa84530c2dbb"
}
2026-03-09 18:30:28 api/send send_event sms 19240275271 alarm_event 失败 200 isv.TEMPLATE_PARAMS_ILLEGAL 9EB27105-6495-5600-B43F-C105E6354460 0df903b095a44498b46caa84530c2dbb 模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!
查看
{
    "id": "f0d52a4827bd0e9109ab879b",
    "timestamp": 1773052228,
    "time": "2026-03-09 18:30:28",
    "source": "api/send",
    "operation": "send_event",
    "type": "sms",
    "phone": "19240275271",
    "bizType": "alarm_event",
    "ok": false,
    "httpCode": 200,
    "aliyunCode": "isv.TEMPLATE_PARAMS_ILLEGAL",
    "aliyunMessage": "模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!",
    "requestId": "9EB27105-6495-5600-B43F-C105E6354460",
    "outId": "0df903b095a44498b46caa84530c2dbb",
    "message": "模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!",
    "ip": "8.155.38.55",
    "contactName": "王五",
    "taskCode": "0df903b095a44498b46caa84530c2dbb"
}
2026-03-09 18:30:28 api/send send_event sms 19200951520 alarm_event 失败 200 isv.TEMPLATE_PARAMS_ILLEGAL 2E09B636-32CB-504A-B0B3-1BB4ECA26848 0df903b095a44498b46caa84530c2dbb 模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!
查看
{
    "id": "9b09dd8a2e155268277917ab",
    "timestamp": 1773052228,
    "time": "2026-03-09 18:30:28",
    "source": "api/send",
    "operation": "send_event",
    "type": "sms",
    "phone": "19200951520",
    "bizType": "alarm_event",
    "ok": false,
    "httpCode": 200,
    "aliyunCode": "isv.TEMPLATE_PARAMS_ILLEGAL",
    "aliyunMessage": "模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!",
    "requestId": "2E09B636-32CB-504A-B0B3-1BB4ECA26848",
    "outId": "0df903b095a44498b46caa84530c2dbb",
    "message": "模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!",
    "ip": "8.155.38.55",
    "contactName": "李四",
    "taskCode": "0df903b095a44498b46caa84530c2dbb"
}
2026-03-09 18:30:27 api/send send_event sms 19886287923 alarm_event 失败 200 isv.TEMPLATE_PARAMS_ILLEGAL 9E6ADF0C-0FCC-515D-86B0-FDDC5B5AA7DA 0df903b095a44498b46caa84530c2dbb 模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!
查看
{
    "id": "8b0a81f1a9dc47cf14f155d0",
    "timestamp": 1773052227,
    "time": "2026-03-09 18:30:27",
    "source": "api/send",
    "operation": "send_event",
    "type": "sms",
    "phone": "19886287923",
    "bizType": "alarm_event",
    "ok": false,
    "httpCode": 200,
    "aliyunCode": "isv.TEMPLATE_PARAMS_ILLEGAL",
    "aliyunMessage": "模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!",
    "requestId": "9E6ADF0C-0FCC-515D-86B0-FDDC5B5AA7DA",
    "outId": "0df903b095a44498b46caa84530c2dbb",
    "message": "模版中的变量sbname(8A0672测试)不符合[个人姓名]的变量规范!",
    "ip": "8.155.38.55",
    "contactName": "张三",
    "taskCode": "0df903b095a44498b46caa84530c2dbb"
}
2026-03-09 16:39:25 api/send send sms 19200951520 成功 200 OK 40E8D191-ADA9-5589-908F-F6D2CC5157B8 OK
查看
{
    "id": "4789aabb4fc5c4e0f094ca0a",
    "timestamp": 1773045565,
    "time": "2026-03-09 16:39:25",
    "source": "api/send",
    "operation": "send",
    "type": "sms",
    "phone": "19200951520",
    "bizType": "",
    "ok": true,
    "httpCode": 200,
    "aliyunCode": "OK",
    "aliyunMessage": "OK",
    "requestId": "40E8D191-ADA9-5589-908F-F6D2CC5157B8",
    "outId": "",
    "message": "OK",
    "ip": "127.0.0.1"
}
2026-03-09 16:39:25 api/send send sms 19200951520 alarm_test 成功 200 OK 756EAA23-402E-5FAE-8B75-77A485CAAEA5 OK
查看
{
    "id": "2a97436db72dd507625cd1c7",
    "timestamp": 1773045565,
    "time": "2026-03-09 16:39:25",
    "source": "api/send",
    "operation": "send",
    "type": "sms",
    "phone": "19200951520",
    "bizType": "alarm_test",
    "ok": true,
    "httpCode": 200,
    "aliyunCode": "OK",
    "aliyunMessage": "OK",
    "requestId": "756EAA23-402E-5FAE-8B75-77A485CAAEA5",
    "outId": "",
    "message": "OK",
    "ip": "127.0.0.1"
}
2026-03-09 16:13:57 api/send send sms 19200951520 alarm_test 成功 200 OK C8D7B39D-6C54-5E54-8804-DB2A8CA4EC5C OK
查看
{
    "id": "81c020c2c7cb64e618be413e",
    "timestamp": 1773044037,
    "time": "2026-03-09 16:13:57",
    "source": "api/send",
    "operation": "send",
    "type": "sms",
    "phone": "19200951520",
    "bizType": "alarm_test",
    "ok": true,
    "httpCode": 200,
    "aliyunCode": "OK",
    "aliyunMessage": "OK",
    "requestId": "C8D7B39D-6C54-5E54-8804-DB2A8CA4EC5C",
    "outId": "",
    "message": "OK",
    "ip": "127.0.0.1"
}
2026-03-09 16:11:17 api/send send sms 13147748004 alarm_test 成功 200 OK 88FF0CC4-4277-5621-B274-4C09E795FE93 OK
查看
{
    "id": "65f49e0cd97bcd6f4f846847",
    "timestamp": 1773043877,
    "time": "2026-03-09 16:11:17",
    "source": "api/send",
    "operation": "send",
    "type": "sms",
    "phone": "13147748004",
    "bizType": "alarm_test",
    "ok": true,
    "httpCode": 200,
    "aliyunCode": "OK",
    "aliyunMessage": "OK",
    "requestId": "88FF0CC4-4277-5621-B274-4C09E795FE93",
    "outId": "",
    "message": "OK",
    "ip": "127.0.0.1"
}
2026-03-09 16:09:22 api/send send sms 13147748004 alarm_test 失败 200 isv.TEMPLATE_PARAMS_ILLEGAL 6A806ACB-239F-5A80-A5B6-121FE1CCB6B3 模版中的变量sbname(Camera-01)不符合[个人姓名]的变量规范!
查看
{
    "id": "7cec9a37542563a39cf4e4fd",
    "timestamp": 1773043762,
    "time": "2026-03-09 16:09:22",
    "source": "api/send",
    "operation": "send",
    "type": "sms",
    "phone": "13147748004",
    "bizType": "alarm_test",
    "ok": false,
    "httpCode": 200,
    "aliyunCode": "isv.TEMPLATE_PARAMS_ILLEGAL",
    "aliyunMessage": "模版中的变量sbname(Camera-01)不符合[个人姓名]的变量规范!",
    "requestId": "6A806ACB-239F-5A80-A5B6-121FE1CCB6B3",
    "outId": "",
    "message": "模版中的变量sbname(Camera-01)不符合[个人姓名]的变量规范!",
    "ip": "127.0.0.1"
}