Error Codes

Reference for all error responses returned by the YourSend API.

Error Format

All error responses follow a consistent JSON format:

{
  "error": "Human-readable error message",
  "code": "ERROR_CODE"
}

HTTP Status Codes

CodeMeaning
200Success
400Bad Request — missing or invalid parameters
401Unauthorized — invalid or missing API key
403Forbidden — insufficient permissions or plan
404Not Found — resource does not exist
429Rate Limited — too many requests
500Internal Server Error — try again later

Error Codes

CodeHTTPDescription
INVALID_API_KEY401The API key is invalid or revoked
MISSING_API_KEY401No Authorization header provided
MISSING_FIELD400A required field is missing
INVALID_CHANNEL400Channel must be email, sms, voice, whatsapp, or auto
INVALID_RECIPIENT400Recipient email or phone format is invalid
DOMAIN_NOT_VERIFIED403Sending domain is not verified
PLAN_LIMIT_EXCEEDED403You have exceeded your plan limits
AI_NOT_ENABLED403AI features require Growth plan or higher
RATE_LIMITED429Too many requests, slow down
DELIVERY_FAILED500Message could not be delivered
TEMPLATE_NOT_FOUND404The specified template_id does not exist
CONTACT_SUPPRESSED400The recipient has been suppressed