API errors

Every error response from the coordinator has the same shape:

{
  "detail": "App not found",
  "passive_error": { "code": "not_found" }
}

detail is a human-readable string (validation failures keep FastAPI's list). Branch on passive_error.code, never on detail. Some codes carry extra fields beside code: insufficient_scope adds required and missing, validation_error adds errors, port_conflict adds port and holder.

Codes are stable, and every code is listed on this page. When a response has a Retry-After header, honour it.

Authentication

CodeMeaning
unauthenticatedNo usable credential on the request.
token_expiredThe session token has expired; sign in again.
invalid_tokenThe credential is malformed or not recognised.
key_expiredThe API key has expired; mint a new one.
key_revokedThe API key was revoked; mint a new one.
key_not_foundNo API key with that id in this org.
api_keys_unconfiguredAPI keys are not configured on this coordinator.

Authorisation

CodeMeaning
forbiddenAuthenticated, but not allowed to do this.
api_key_forbiddenThis endpoint does not accept API keys; use a session.
standby_not_entitledThis account may not opt an app into that standby tier.
workspaces_lockedWorkspaces cannot be created or changed during the closed alpha.
insufficient_scopeThe API key lacks a required scope; see missing.

Request

CodeMeaning
bad_requestThe request is malformed.
invalid_requestA field is missing or has an unacceptable value.
invalid_scopeAn unknown scope was requested.
validation_errorThe body or parameters failed validation; see errors.

State

CodeMeaning
not_foundThe resource does not exist, or is not visible to this caller.
conflictThe request conflicts with the resource's current state.
port_conflictThe host port is held by another deployment; see holder.
payment_requiredOut of credits, or a plan limit is reached; see detail.
plan_requiredThe org's plan does not include this; Pro or Enterprise is needed (see detail).
key_limit_reachedThe org has reached its API key limit.
idempotency_key_reusedThis Idempotency-Key was used with a different request.
idempotency_in_progressA request with this Idempotency-Key is still running; retry after Retry-After.
idempotency_unavailableThe coordinator cannot reach the store that makes Idempotency-Key safe, so it ran nothing; retry after Retry-After. Status 503.
payload_too_largeThe request body is too large.
rate_limitedToo many requests; retry after the Retry-After header.
device_limitThe account has as many devices as it may; remove one to add another.
device_key_in_useThis device key is registered already, to another account or to a removed device.
device_revokedThis device was removed; register the install again.
app_update_requiredThe Passive app is below the supported version; see min_version.
enrollment_not_approvedThe account has no desktop access; request it, or ask for a contributor invite. Status 403.

Server

CodeMeaning
unavailableA dependency is unavailable; retry shortly.
internal_errorThe coordinator failed; retrying may help.