Error codes
| Status | When | What to do |
|---|---|---|
400 | Invalid JSON body or missing email | Fix the request payload |
401 | Missing or unknown API key | Check the X-API-Key header and authentication |
402 | Account has no active subscription | Choose a plan on the pricing page |
403 | Key inactive or not owned | Create a new key in the dashboard |
429 | Per-second rate limit exceeded | Wait one second, retry the same request |
Error bodies (POST /check/):
{ "error": "Invalid or inactive API Key" }
{ "error": "Valid API key or session token required." }
{
"success": false,
"error": "subscription_required",
"message": "Choose a plan to activate your API key."
}
{
"error": "Request was throttled. Expected available in 1 second.",
"details": {}
}
A 400 (bad payload) returns the same { "error", "details" } shape, e.g.
for an invalid address: { "error": "Validation Error", "details": { "email": ["Enter a valid email address."] } }.
Rate limit vs quota (don't confuse them)
- Per-second rate limit — plan-tier bound (Starter
10/second, Pro50/second). Exceeding it returns429 Too Many Requests; slow down and retry after a second. On persistent bursts, queue requests client-side. - Monthly quota — exceeding your plan's monthly check limit never
returns an error. Checks keep returning normal
200allow responses with the headerX-ShildMatrix-Quota: exceeded, so your signups keep flowing. The dashboard flags it and we'll reach out about the right plan.
Your current limits: GET /usage/.
Rule of thumb: fail open
Validation is upstream of a signup, so treat any non-200 response or timeout as "proceed or challenge, never block". Sample code: handle decisions guide.