Common Error Codes
Error Code List
| Error Code | Description |
|---|---|
| 0 | Success |
| 215392 | Parameter error, see Message field for specific error information |
| 215393 | Authentication failed |
| 215394 | Signature verification failed |
| 215395 | Timestamp expired |
| 215396 | Parameter not found |
| 215397 | Missing required parameter |
| 215398 | Failed to parse Token |
| 215399 | Invalid Token |
| 215400 | Server error |
Sending Domain and Sender Error Codes
These codes are returned by the Sending Domain and Email Sender APIs in addition to the common codes above.
| Error Code | Description |
|---|---|
| 214403 | Missing required parameter, see Message field for the parameter name |
| 214405 | Invalid parameter, see Message field for the parameter name |
| 214406 | Internal service error |
| 214407 | The record does not exist, or the record already exists for create requests |
| 215113 | Domain name contains an invalid character |
| 215114 | Domain name is too long |
| 215115 | The domain cannot be deleted after verification |
| 215117 | The default sender cannot be updated |
| 215118 | The default sender cannot be deleted |
| 215129 | The domain is unavailable (disabled or not verified) |
| 215130 | The email suffix does not match the domain |
| 215210 | The number of domains exceeds the account limit |
Notes
- Authentication: Please keep your API keys secure. Do not hardcode them in your code. It is recommended to use environment variables or configuration files
- Request Rate: Please pay attention to the API rate limits and avoid frequent requests
- Parameter Validation: Before sending requests, ensure all required parameters are correctly filled and meet length and format requirements
- Error Handling: It is recommended to add comprehensive error handling logic in your code and handle accordingly based on RetCode
- HTTPS: All requests must use HTTPS protocol to ensure data transmission security
- Email Content:
- When sending using templates, ensure template variable parameter format is correct:
varLabelName{#...}varLabelValue - When sending emails directly, the Content field supports HTML format
- Email subject and content must comply with relevant laws and regulations
- When sending using templates, ensure template variable parameter format is correct:
- Batch Sending:
SendEmailAPI supports up to 100 recipients- It is recommended to reasonably control the number of batch sends to avoid triggering anti-spam mechanisms
- Session Number:
SessionNowill be returned after successful sending and can be used to query email sending status later
Contact Support
If you have any questions, please contact the technical support team.