Skip to Content
APIErrors

Errors

Every error response uses the same shape:

{ "error": "Forbidden", "code": "FORBIDDEN" }
  • error — human-readable message. Useful for logs; not safe to display to end users verbatim.
  • code — optional machine-readable code. When present, branch on this.
  • data — optional structured detail. For VALIDATION_ERROR it is an array of { path, message } field errors. Never present on INTERNAL_ERROR.

HTTP status codes

StatusMeaningAction
400Request body or parameters failed validationFix the request
401Token missing, malformed, or revokedRe-authenticate
403Authenticated but not allowedCheck permissions / tier
404Resource not found, or fingerprint has no Artifact yetVerify the identifier
409Conflicts with existing state (e.g. fingerprint already has an Artifact)Don’t retry unchanged
413Uploaded file or request body too largeSend a smaller file, or omit the file part
204Success with no body (e.g. revoke key)—
2xxSuccess—
5xxServer fault — retry with backoffRetry then escalate

Error codes

BAD_REQUEST

Validation failed on the request body or path/query parameters. Common causes: missing required field, fingerprint not matching ^0x[0-9a-f]{64}$, name outside 1–64 chars on POST /api/v1/api-keys.

On POST /api/v1/artifacts, a multipart/form-data request whose file part does not hash (SHA-256) to the submitted fingerprint is also a 400. Signing one asset while validating the manifest report against another would publish a binding you never claimed.

VALIDATION_ERROR

The request body or parameters failed schema validation. Returned as 400 with error: "Validation failed" and data listing the failing fields:

{ "error": "Validation failed", "code": "VALIDATION_ERROR", "data": [{ "path": "fingerprint", "message": "<reason>" }] }

Also returned by GET /api/v1/marks for a malformed organizationId.

CLAIM_ALREADY_RECORDED

POST /api/v1/artifacts returns 409 when the fingerprint already has a live (non-failed) Artifact. A fingerprint whose earlier Artifacts all have status: failed can be resubmitted.

CONFLICT

The request conflicts with a concurrent change. Re-read the resource before trying again.

PAYLOAD_TOO_LARGE

A multipart/form-data upload’s file exceeds the upload limit (50 MB by default). Returned as 413 with error: "File too large". Fingerprint-only requests don’t send the file and aren’t affected.

INTERNAL_ERROR

Unexpected server error. Returned as 500 with error: "Internal server error" and no details. Retry with backoff (see below).

Client errors raised while parsing the body (malformed JSON, an unexpected multipart field, an oversized body) keep their 4xx status, return error: "Bad request", and pass the parser’s own code through (e.g. entity.parse.failed, LIMIT_UNEXPECTED_FILE), so treat the code list as open-ended.

MISSING_ORGANIZATION_ID

A required organizationId was omitted on a JWT-authenticated request. Applies to:

  • GET /api/v1/api-keys (JWT caller must pass ?organizationId=<uuid>)
  • DELETE /api/v1/api-keys/{keyId} (same)

API-key callers don’t hit this — the organization is derived from the key itself and the query parameter is ignored.

UNAUTHORIZED

Authentication is required or the provided token is invalid. Possible causes:

  • Missing Authorization header
  • Wrong scheme (only Bearer is accepted)
  • JWT expired (re-login)
  • API key revoked (mint a new one)
  • WORKSPACE_FROZEN — the key’s organization was frozen because its owner downgraded or canceled their Enterprise subscription. Keys resume working automatically when the owner re-subscribes.

FORBIDDEN

Authentication succeeded but the caller is not allowed to perform the operation. Common cases:

  • Reading Artifacts from a private Mark you’re not a member of (caller is authenticated but not authorized for the resource)
  • Creating an Artifact under a Mark you don’t have write access to
  • Operating as a non-owner on org-level API key endpoints
  • POST /api/v1/marks — the caller is not the owner or an admin member of the target organization
  • PUT /api/v1/marks/{markId} — the caller is not the Mark’s admin. API keys act as the organization owner, so they can update the Marks they created but not one another member admins.

API_KEY_ORG_MISMATCH

An API-key-authenticated request targeted a resource outside the key’s own organization (cross-org mint, sibling-key revoke against another org, POST /api/v1/marks naming a different organizationId, updating a Mark outside the key’s organization). Surfaces as 403. Use a JWT to act across organizations.

TIER_RESTRICTION

The operation is disabled on the caller’s current subscription tier. Common cases:

  • Creating a private Mark on a tier that disallows it
  • Editing Mark parameters after creation (PUT /api/v1/marks/{markId}) on a tier that forbids it
  • Hitting daily or lifetime Artifact caps for the Mark’s tier context

The remedy is either to upgrade the tier or wait until the cap resets (daily caps reset at the next UTC midnight). See Tiers & limits.

TIER_LIMIT_REACHED

A tier-driven quota was hit. Specifically:

  • POST /api/v1/api-keys — non-enterprise orgs cannot mint keys at all, and enterprise orgs are capped at 5 active keys.
  • POST /api/v1/marks — the target workspace is at its Mark cap.

Resolve by upgrading the tier, revoking an existing key, or (for Marks) reusing one you already own.

USAGE_UNIT_LIMIT_REACHED

The workspace has no free usage unit available for adding a new member. A workspace ships with 1 usage unit (consumed by the owner); additional usage units are purchased via the per-usage-unit Stripe subscription. See Tiers & limits.

JSON-RPC errors

The JSON-RPC endpoint (POST /rpc/{apiKey}) returns errors in the JSON-RPC 2.0 error object instead of the shape above. Application codes:

CodeMeaning
-32001Validation
-32002Blockchain
-32003Contract
-32004Unauthorized
-32005Not found
-32006Limit exceeded

claim.create obeys the API key’s workspace limits, like POST /api/v1/artifacts. It counts toward the workspace’s daily Artifact limit and is refused when the workspace is frozen. When refused, nothing is registered on-chain and message carries the reason:

{ "code": -32006, "message": "Daily claim limit reached (100). Resets at midnight UTC." }

On Enterprise Pay-as-you-go, each Artifact created via JSON-RPC is billed $0.05 like any other.

Retry guidance

  • 5xx — retry with exponential backoff (e.g. 1s, 2s, 4s, max 30s, cap at 5 attempts). Use jitter for fleets.
  • 4xx — do not retry without changing the request. A retry will produce the same response.
  • 429 — not currently emitted; tier caps surface as 403 TIER_RESTRICTION or 403 TIER_LIMIT_REACHED instead.
Last updated on