Skip to main content
Every Authmatech response uses the same envelope. This page is a concise reference; for retry strategy and a debugging checklist, see the full Errors & responses guide.

Envelope

{
  "success": false,
  "messages": [
    { "type": "FAILURE", "code": "resource_not_found", "message": "Client not found.", "httpStatus": "NOT_FOUND", "technical": false, "arguments": null }
  ],
  "data": null
}
Read results from data. Treat success: false or a non‑200 status as an error.

Status codes

StatusMeaningRetryable
200OK (verdict may still be negative)
201Created
204No Content
400Bad Request — validation, product not enabled, or balance issueNo
401Unauthorized — bad/missing X-API-KEY or X-CLIENT-IDNo
404Not FoundNo
429Too Many RequestsYes (backoff)
500Internal Server ErrorYes (backoff)

Error codes

CodeMeaning
resource_not_foundThe resource does not exist
resource_already_existsA conflicting resource exists
INVALID_MOBILE_NUMBERThe mobile number failed validation
internal_server_errorUnexpected server error
A 200 with data.validNumber: false (or a BLOCK decision) is a successful call with a negative business outcome — not an error. Branch on data, not just the status code.
See Errors & responses for retry strategy, E.164 rules, and the debugging checklist, and Rate limits for 429 handling.