Skip to main content
Docs · Security, data & AI

Error Codes

Updated

Allure Connect API errors use a flat JSON envelope:

json
{
  "error": "Human-readable message",
  "code": "STABLE_MACHINE_CODE"
}

Validation failures may also include details. The interactive OpenAPI reference is the endpoint-level source of truth; this page lists common cross-cutting and core delivery errors rather than inventing an exhaustive global enum.

Authentication and Access

HTTPCodeMeaning
401API_KEY_REQUIREDMissing, invalid, revoked, wrong-mode, or disallowed-scope API key
402PAYMENT_REQUIREDThe operation requires a paid plan
403TENANT_MISMATCHA request named a tenant outside the authenticated key
403DISPATCH_ORIGIN_REQUIREDA domain-restricted dispatch did not include usable origin context
403DISPATCH_ORIGIN_NOT_ALLOWEDThe launch origin is outside the dispatch allowlist

Use Authorization: Bearer <api_key> or X-API-Key: <api_key> on partner routes. Bearer wins when both are supplied. Customer dashboard routes under /api/customer/* require the signed-in Clerk browser session.

Request Validation

HTTPCodeMeaning
400INVALID_JSONThe request body is not valid JSON
400/422INVALID_REQUESTThe request does not match the endpoint schema
400INVALID_BODYThe body cannot be parsed for that endpoint
400INVALID_PAGINATIONA pagination value is invalid
400INVALID_SESSION_IDA session identifier is not a UUID
400INVALID_LIMITThe requested limit is outside the supported range
400INVALID_STATEMENTAn xAPI statement fails validation
413STATEMENT_TOO_LARGEAn xAPI statement exceeds the payload limit

Packages, Sessions, and Dispatches

HTTPCodeMeaning
404PACKAGE_NOT_FOUNDThe package does not exist in the authenticated workspace
404SESSION_NOT_FOUNDThe session does not exist
404UPLOAD_NOT_FOUNDThe multipart upload cannot be found
404DISPATCH_POSTBACK_NOT_FOUNDThe dispatch has no postback delivery to retry
409VERSION_CONFLICTA session update used a stale version
409SESSION_ID_SCOPE_MISMATCHLaunch session_id already belongs to a different package or workspace
409DISPATCH_POSTBACK_NOT_RETRYABLEThe postback is not in a retryable state
429RATE_LIMIT_EXCEEDEDAn operation-specific limit was reached
502PRESIGN_FAILEDConnect could not mint the upload URL
502ARCHIVE_UPLOAD_FAILEDDirect archive upload failed
502MULTIPART_INIT_FAILEDMultipart upload initialization failed
502MULTIPART_COMPLETE_FAILEDMultipart completion failed
502MULTIPART_ABORT_FAILEDMultipart abort failed

Dispatch launch token failures may return INVALID_DISPATCH_TOKEN or EXPIRED_DISPATCH_TOKEN. A protected dispatch can also return the specific password error supplied by the launch service. Always display the error message and branch programmatically on code.

Webhooks and xAPI

HTTPCodeMeaning
404STATEMENT_NOT_FOUNDThe xAPI statement does not exist
400INVALID_PAGEThe xAPI offset/page input is invalid
400INVALID_STATEMENTOne or more xAPI statements are invalid

Webhook endpoint creation uses INVALID_JSON and INVALID_REQUEST for invalid payloads. Delivery history and manual retry are dashboard operations, not separate public webhook-delivery endpoints.

Platform Failures

HTTPCodeMeaning
503RATE_LIMIT_UNAVAILABLEA required durable rate-limit backend is unavailable
503BACKEND_UNAVAILABLEA transient backend operation failed; retry when advised
500INTERNAL_ERRORAn unexpected non-transient failure occurred

BACKEND_UNAVAILABLE responses may include Retry-After. Rate-limited routes use X-RateLimit-*; see Rate Limiting.

Handling Pattern

typescript
const response = await fetch(url, init);
const payload = await response.json().catch(() => null);

if (!response.ok) {
  const code = payload?.code ?? 'UNKNOWN_ERROR';
  if (response.status === 503 && payload?.retryable === true) {
    const retryAfterSeconds = Number(response.headers.get('Retry-After'));
    scheduleRetry(Number.isFinite(retryAfterSeconds) && retryAfterSeconds >= 0
      ? retryAfterSeconds
      : 5);
  }
  throw new Error(`${code}: ${payload?.error ?? response.statusText}`);
}