Skip to main content
Error reference

Soryxa API Errors

Handle Soryxa errors explicitly so signup and CRM workflows can distinguish bad input, missing authentication, inactive billing, usage limits, and temporary service failures.

Handling order

  1. 1 Check HTTP status first. Validate-email request errors expose top-level error_code; batch creation 422 responses expose errors instead.
  2. 2 Route auth, subscription, and usage errors to account handling.
  3. 3 Keep API failures separate from allow, block, and review email decisions.

Error response shape

Validate-email request validation and documented authentication, subscription, usage, and batch-state errors expose a machine-readable error_code. Batch creation input validation is the exception: its HTTP 422 body returns success, message, and errors without error_code.

{
  "success": false,
  "message": "You have reached your usage limit for this billing period. Please upgrade your plan.",
  "error_code": "USAGE_LIMIT_EXCEEDED",
  "data": {
    "limit": 250,
    "used": 250,
    "remaining": 0,
    "period_ends_at": "2026-08-01"
  }
}
VALIDATION_ERROR HTTP 422 The validate-email request payload failed validation. Batch creation 422 responses use an errors object without error_code.
INVALID_AUTH_HEADER HTTP 401 Authorization header is malformed.
MISSING_TOKEN HTTP 401 Bearer token was not provided.
INVALID_TOKEN HTTP 401 Bearer token could not authenticate the request.
TOKEN_EXPIRED HTTP 401 Bearer token has passed its expiration time.
TEAM_NOT_FOUND HTTP 401 Authenticated team context was not found.
TOKEN_NOT_FOUND HTTP 401 Scope middleware could not find the authenticated token on the request.
INSUFFICIENT_SCOPE HTTP 403 Token does not include a scope required by the endpoint.
NO_SUBSCRIPTION HTTP 402 Team has no subscription record and no available purchased checks.
SUBSCRIPTION_INACTIVE HTTP 402 Subscription exists but is inactive and no purchased checks are available.
SUBSCRIPTION_PERIOD_UNAVAILABLE HTTP 402 Subscription billing dates are unavailable and purchased checks cannot cover the request. Contact support to restore the billing period.
TOKEN_RATE_LIMIT_EXCEEDED HTTP 429 Token reached its configured per-minute request limit.
USAGE_LIMIT_EXCEEDED HTTP 429 The active monthly allowance is exhausted and there are no available purchased checks.
INSUFFICIENT_CREDITS HTTP 429 A batch contains more rows than the team has remaining credits.
NOT_FOUND HTTP 404 The requested team-scoped batch job was not found.
JOB_NOT_TERMINAL HTTP 409 A batch export was requested before the job reached a terminal state.
INVALID_TRANSITION HTTP 409 The batch cannot move to the requested state, such as cancelling a completed job.
USAGE_CHECK_ERROR HTTP 500 Usage check failed before validation could complete.

Do not retry input errors

Fix the payload before retrying a validate-email VALIDATION_ERROR response or a batch creation HTTP 422 response.

Pause on account errors

Treat authentication and subscription errors as configuration issues rather than address quality decisions.

Plan limit handling

Route USAGE_LIMIT_EXCEEDED to plan review, queueing, or a user-visible fallback.

Error handling guidance

Error codes describe the request or account state, not the quality of the submitted address. Keep them separate from allow, block, and review decisions in logs and analytics.

This separation matters during incidents and billing changes. A spike in invalid addresses should trigger product or abuse review, while authentication, subscription, and usage errors should route to the account owner responsible for API configuration and plan capacity.

Log the error code, HTTP status, request context, and retry decision together. That gives your troubleshooting workflow enough context without confusing service issues with validation outcomes.

Authentication errors are configuration issues

A missing or invalid token should pause validation and prompt the API owner to fix credentials. It should not mark an email address as risky.

Subscription errors need account handling

Payment-required responses mean the team account cannot validate at the moment. Route these to plan review, billing recovery, or a queueing strategy.

Usage limits are capacity signals

When usage is exhausted, decide whether to stop new validations, queue them, or move to a plan with more allowance before user-facing workflows are affected.

Temporary service errors need fallback logic

A service or usage-check failure should produce a controlled fallback path. For signup flows, review is usually safer than silently allowing or blocking the address.