开发
错误处理和响应代码
处理 API 错误和响应代码的全面指南
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
处理 API 错误和响应代码的全面指南
{
"success": true,
"message": "通知已成功排队",
"notification_id": "uuid-notification-123",
"scheduled_time": "2024-12-25T10:30:00Z"
}
{
"templates": [
{
"id": "template_001",
"name": "welcome_user",
"status": "approved"
}
],
"total": 1
}
{
"error": "validation_failed",
"message": "缺少必需字段",
"details": {
"field": "contact.number",
"reason": "此字段是必需的"
},
"request_id": "req_123456789"
}
{
"error": "unauthorized",
"message": "无效或过期的访问密钥",
"details": {
"reason": "提供的 access_key 无效或已被撤销"
},
"request_id": "req_123456793"
}
