Skip to content

Error Codes Reference ​

Complete list of all SendAPI error codes, their causes, and recommended remediation steps.

HTTP Status Codes ​

HTTP CodeMeaning
200 OKRequest succeeded
201 CreatedResource created
400 Bad RequestInvalid request body or parameters
401 UnauthorizedMissing or invalid API key
403 ForbiddenValid key but insufficient permissions
404 Not FoundResource not found
409 ConflictConflict with existing resource
410 GoneResource expired (e.g., OTP)
422 Unprocessable EntityValidation error
429 Too Many RequestsRate limit exceeded
402 Payment RequiredQuota exceeded, plan upgrade needed
500 Internal Server ErrorUnexpected server error

Error Response Format ​

All errors return a consistent JSON structure:

json
{
  "success": false,
  "error": {
    "type": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 12 seconds.",
    "code": 4029
  },
  "meta": {
    "request_id": "req_01H9...XQ",
    "timestamp": "2026-03-09T14:30:00.000000Z"
  }
}

Authentication Errors (401, 403) ​

CodeTypeDescriptionFix
4010missing_api_keyNo Authorization header providedAdd Authorization: Bearer sk_live_... header
4011invalid_api_keyAPI key is malformed or not recognizedCheck the key value — it should start with sk_live_
4012revoked_api_keyThe API key has been revokedCreate a new key in the dashboard
4013expired_api_keyThe key's expiry date has passedCreate a new key in the dashboard
4030insufficient_scopeKey lacks permission for this endpointIssue a key with the required scope

Quota and Billing Errors (402, 429) ​

CodeTypeDescriptionFix
402email_quota_exceededMonthly email quota reachedUpgrade your plan
402subscription_requiredNo active subscriptionSubscribe to a plan
402subscription_expiredTrial expired or subscription cancelledRenew or upgrade
4021sms_balance_lowInsufficient SMS credit balanceTop up credits in billing dashboard
4029rate_limit_exceededToo many requests per minuteBack off and retry after the Retry-After header

Trial Limits (403) ​

The 3-day trial exists to prove the channels work. These apply only while your subscription status is trialing; a paid plan never sees them.

CodeTypeDescriptionFix
403trial_sms_needs_verified_numberTrial SMS can only go to a number you have verified, and this account has nonePair your WhatsApp number; we treat it as verified
403trial_sms_recipient_not_verifiedto is not the number on your paired WhatsApp sessionSend to your own number, or move to a paid plan
403trial_sms_quota_reachedThe trial's 2 SMS have been usedMove to a paid plan
403trial_sms_too_longA trial SMS may be at most 2 segments (320 characters)Shorten the message, or move to a paid plan
403trial_bulk_not_availableBulk SMS is not part of the trialMove to a paid plan
403trial_whatsapp_daily_cap10 WhatsApp messages a day on the trialWait until tomorrow, or move to a paid plan

Failed sends do not count against the 2-SMS allowance, so a carrier failure does not cost you the trial.

Plan Errors (403) ​

CodeTypeDescriptionFix
403channel_not_in_planYour plan does not include this channelStart a trial or move to a plan that includes it
403sms_not_on_planSMS credit cannot be bought on a plan without SMS (such as Free)Move to a plan that includes SMS
403domain_verification_requiredYour account can only email its own address until a domain is verifiedVerify a domain under Email Domains

Validation Errors (400, 422) ​

CodeTypeDescriptionFix
422destination_not_enabledThe carrier is currently refusing SMS to this countryTemporary. We are notified automatically and the route reopens as soon as delivery succeeds again
422validation_errorGeneric validation failureCheck the errors field for field-level details
4001invalid_phonePhone number is not validUse the Phone Validation endpoint to normalize
4002invalid_sessionsession_id does not exist or is not yoursList sessions to find the correct ID
4003session_not_connectedSession exists but is not connectedCheck session status; re-pair if disconnected
422invalid_fromThe from value is not a valid RFC 5322 emailUse email@domain or "Name <email@domain>"
422invalid_from_domainDomain in from is not verified on your accountVerify the domain in Email Domains or omit from

OTP / Verify Errors ​

CodeTypeDescriptionFix
404not_foundNo pending OTP exists for the recipientSend a new OTP first
4291rate_limit_exceededMore than 5 OTPs sent to this phone in the last hourWait up to an hour before resending
4292daily_limit_exceededMore than 20 OTPs sent to this phone todayWait until 24h after the first send

Authentication / Verification Gate Errors (403) ​

CodeTypeDescriptionFix
403email_not_verifiedAccount email is not verifiedClick the verification link sent at signup
403admin_requiredAdmin-only endpointThis endpoint is internal — not for end-user keys

Why an SMS failed ​

GET /v1/sms/status/{id} returns error_code and a plain-English error_reason on any failed message, so you do not have to look carrier codes up:

json
{
  "id": 412,
  "status": "failed",
  "error_code": "30003",
  "error_reason": "The handset is unreachable: switched off, out of coverage, or the number is no longer in service."
}

A failed SMS is refunded in full. The message never arrived, so you owe nothing regardless of what the carrier charged us.

Server Errors (500) ​

CodeTypeDescriptionFix
5000internal_errorUnexpected server errorRetry with exponential backoff; contact support if persistent
5001provider_errorDownstream SMS/WhatsApp provider errorRetry; check the dashboard for system status

Released under the MIT License.