Developer Documentation

Consistent Error Codes for Faster Debugging

Recommended error envelope:

JSON
{
  "success": false,
  "error": {
    "code": "A21-2005",
    "message": "Template requires 3 variables, but 2 were provided."
  }
}
JSON
{
  "success": false,
  "error": {
    "code": "A21-2005",
    "message": "Template requires 3 variables, but 2 were provided."
  }
}

Initial Error Catalogue

CodeMeaningRecommended Developer Action
A21-1001Invalid API keyVerify key/environment and authorization header
A21-1002IP not allowedUpdate allowed IP or send from authorized server
A21-1003Rate limit exceededBack off and respect rate-limit headers
A21-2001Invalid destination numberCorrect recipient format
A21-2002Template not found/inactiveUse an active authorized template
A21-2003Sender/header not approvedComplete sender mapping/approval
A21-2004DLT/template validation failedReview approved content/mapping
A21-2005Variable mismatchSend correct count/order of variables
A21-3001Insufficient balance/entitlementRecharge or contact billing/support
A21-3201Route/provider unavailableRetry according to documented guidance
A21-3202Message rejectedInspect rejection category and correct request
A21-5000Internal errorRetry only if safe; contact support with request ID
EVERY ALERT. ONE API.

Turn your next business event into a traceable alert.

Start with DLT-ready SMS today on Alert21’s developer-first communication platform.