Website →

Reference

Overview of the ShildMatrix API reference — endpoints, authentication, error codes and versioning.

Endpoints

The public validation API lives under /api/v1/ and authenticates with an API key (X-API-Key header). Two endpoints cover the whole signup-protection workflow: check an email, and check your own usage.

EndpointMethodWhat it does
/check/POSTValidate an email (and optionally an IP) → decision, risk_score, signals, reasons
/status/GETHealth check — confirms the API is reachable and your key is valid
/usage/GETCurrent billing-cycle usage stats for your key

Endpoint schema notes for all three:

  • All requests and responses are JSON over HTTPS.
  • Authentication is the X-API-Key header — see the authentication guide. JWT is accepted only by the internal dashboard and is not part of the public API.
  • Every successful response includes "success": true.

Error codes

StatusMeaning
400Invalid request body or parameters
401Missing or invalid API key
402No active subscription — choose a plan to activate the API key
403API key does not have permission (inactive or not owned)
429Per-second rate limit exceeded (slow down and retry)

Integrate defensively: fail open in your own code on any non-200 response from /check/ — let the signup through (or challenge it) rather than breaking your form when validation is unreachable.

Versioning

The API is versioned by path (/api/v1/). Version v1 only ever receives additive changes — new optional fields, new response fields — never breaking ones. signals and decision are the stable contract; reasons text is informational and may change as we tune detection.

Quota vs rate limit (common confusion)

  • Per-second rate limit → 429 Too Many Requests. Slow down and retry after a second.
  • Monthly quota → never an error. Past your plan limit, /check/ returns a normal 200 allow payload with the header X-ShildMatrix-Quota: exceeded so your signups keep flowing.