Errors

The error envelope and every error code with its HTTP status and meaning.

Every error uses the same envelope. Handle by error.code (stable) rather than the message (human-readable, may change).

Error envelope
{
  "error": {
    "code": "INSUFFICIENT_CREDITS",
    "message": "Your account balance (3) is too low to send this message (2 credits)."
  }
}
CodeHTTPWhen
VALIDATION400Malformed JSON or missing/invalid fields.
INVALID_RECIPIENT400`to` is not a single valid Israeli mobile number.
MESSAGE_TOO_LONG400`body` exceeds 603 characters.
INVALID_PHONE400A contact `phone` is not a valid Israeli mobile number.
SEGMENT_NOT_FOUND400A referenced segment id is invalid or archived.
INVALID_API_KEY401Missing, malformed, or unknown bearer token.
INSUFFICIENT_CREDITS402Balance too low to cover the message.
SENDER_NOT_APPROVED403`from` is not an approved sender for the workspace. The error message lists the approved senders.
RECIPIENT_UNSUBSCRIBED403Opt-out enforcement is on and `to` is a contact that has unsubscribed. Not charged.
RECIPIENT_BLOCKED403`to` is on the workspace blocklist (marketing mode only, like RECIPIENT_UNSUBSCRIBED). Not charged.
WORKSPACE_SUSPENDED403The workspace is suspended.
ACCOUNT_UNDER_REVIEW403New accounts are briefly reviewed; until then API sends are limited to your own verified sender number (for testing). Not charged.
NOT_FOUND404No such message or contact in this workspace.
CONTENT_FLAGGED422The message body matched the platform's restricted-content policy. Not charged.
RATE_LIMITED429Over 60 requests/minute for this token.
INTERNAL500Unexpected server error - the request was not processed; safe to retry.

אתר זה עושה שימוש בעוגיות (Cookies) ובכלים טכנולוגיים נוספים כדי לשפר את חוויית המשתמש, לנתח תנועה ולהתאים פרסומות. המשך הגלישה באתר מהווה את הסכמתך לכך ולמדיניות הפרטיות שלנו.