Browse documentation DocumentationLet’s talk
Documentation / Build with Rokn

Errors

Non-2xx responses use a problem-details body. Handle the code rather than parsing the human-readable title.

Authentication and access

401 invalid_token: the credential is missing, expired, malformed or revoked.

403 insufficient_scope: the credential’s scopes or member permissions do not cover the action.

404 not_found: the resource does not exist in the addressed workspace or is not accessible.

Validation and conflicting writes

422 validation_failed: inspect the errors field for invalid input.

409 conflict: the operation does not fit the resource’s current state.

412 precondition_failed: If-Match did not match the current ETag. Fetch the latest resource before retrying.

Limits and retries

429 rate_limited: respect Retry-After and the rate-limit headers.

403 plan_limit_reached or feature_locked: the workspace’s plan does not allow this operation.

503 gateway_unavailable or pdf_unavailable: a required service could not complete the operation.

Records, calendar and catalogue

409 currency_mismatch: a retainer, service or package named a currency other than the workspace's, or tried to change its own.

409 tag_name_taken: a tag with that name already exists in the workspace. Use the existing tag's id.

409 event_not_editable: the calendar event was imported from a connected Google or Microsoft calendar. It belongs to the provider, so change it there.

422 owner_required: an API key created a calendar event without ownerUserId. An API key is no person; name a member of the workspace.

409 dependency_self, dependency_cycle or dependency_chain_too_long: the task dependency would make a task block itself, make tasks wait on each other, or the check would walk past 500 tasks and failed closed.

403 on a client timeline entry: an API key cannot log one, because it needs a person as its author. Use an OAuth token.

409 folder_cycle: a folder was moved into itself or into one of its own subfolders. Nothing moved.

409 storage_drive_mismatch: the target folder is on another storage drive. Documents cannot move between drives.

409 folder_project_mismatch: the parent folder belongs to another project than the one the request named.

Sending, deleting and keys

409 send_in_progress: a send of this invoice or quote is already queued or running. Read it with GET …/sends/{sendId}.

409 invalid_status_transition: the invoice or quote is no longer a draft, so it cannot be sent again.

409 quote_expired: the quote's validity date has passed. Extend it, then send.

409 conflict with a reason: the body's reason field names the rule, in snake_case, for example delete_blocked_by_locked_records or contract_client_mismatch.

401 key_creator_gone: the API key's creator left the workspace, is banned or is pending account deletion. Create a new key from a current member.

Other responses

422 idempotency_key_reused: the Idempotency-Key was already used with a different request body. Send a new key for a new request.

403 billing_read_only: the workspace is read-only until its subscription payment succeeds. Reads still work.

405 method_not_allowed: the path exists but does not accept this HTTP method.

500 internal: an unexpected error. Retry later, and quote the requestId from the response when you contact support.

Every error body follows RFC 9457 problem details: type, title, status, detail and requestId. Each operation's possible responses are listed in the API reference.