Skip to content

Errors ​

Every v2 error is served as application/problem+json with the same three members, whether the failure is a typo in a request body or a throttled client. One error handler covers the whole API.

json
{
  "type": "conflict",
  "code": "states_managed_at_workspace",
  "detail": "States are managed at the workspace level."
}

The problem shape ​

Fields ​

Three members are always present and never null.

  • type string

    The coarse category, from a closed set of 13 values (below). This is the fallback arm for a code you have never seen — small and stable enough to embed in a client.

  • code string

    The specific condition, and the field to branch on. An open vocabulary that grows as v2 grows. When a condition needs no refinement, code is equal to type.

  • detail string

    A human-readable explanation of this occurrence. Written for a developer reading a log — the wording is not part of the contract.

Plus one member on validation failures only:

  • errors array

    Present only on invalid_request. One entry per rejected field, each carrying field, code and message. The per-field code (required, invalid, unique, invalid_choice, max_length, does_not_exist) lets you branch per field without matching English prose.

Branch on code, fall back to type

Several conditions share a status: 403 covers both forbidden and workflow_transition_denied, and 409 covers conflict plus four refinements. The HTTP status alone cannot tell them apart, and neither can type.

Because code is always present — even when it just repeats type — you never need a code ?? type null check. Switch on code, and let unrecognized values fall through to a type arm.

detail is written for people. Matching on its text will break.

No status, title, or URI type

Earlier v2 previews sent status and title in the body, and a type of the form https://api.plane.so/errors/<code>. All three are gone: status duplicated the HTTP status line, title was derivable boilerplate, and the URI pointed at a page a self-hosted instance never serves. type is now a bare slug.

Response400
json
{
  "type": "invalid_request",
  "code": "invalid_request",
  "detail": "One or more fields failed validation.",
  "errors": [
    {
      "field": "name",
      "code": "required",
      "message": "This field is required."
    },
    {
      "field": "group",
      "code": "invalid_choice",
      "message": "\"in_review\" is not a valid choice."
    }
  ]
}
Response404
json
{
  "type": "not_found",
  "code": "not_found",
  "detail": "The requested resource was not found."
}

Handling errors ​

Read code first, and fall back to type for codes you do not recognize yet — new codes can appear as v2 grows, but the type set will not.

Branch on the error code
bash
# -s keeps curl quiet, -w prints the status so you can see both parts
curl -s -w "\n%{http_code}\n" \
  "https://api.plane.so/api/v2/workspaces/my-team/projects/4af68566-94a4-4eb3-94aa-50dc9427067b/states/" \
  -H "X-Api-Key: $PLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"color": "#3f76ff"}'

The type vocabulary ​

Closed set, 13 values. It grows only when a genuinely new kind of failure appears.

typeStatusMeaning
invalid_request400The request itself is wrong.
unauthorized401Credentials missing or invalid.
payment_required402The feature isn't enabled on your plan.
forbidden403Authenticated, but not allowed.
not_found404No such resource, or it's outside your tenant.
method_not_allowed405Method not supported on this route — most often a PUT.
not_acceptable406Can't produce the representation your Accept header asks for.
conflict409The write collides with existing state or a business rule.
payload_too_large413Request body over the size limit.
unsupported_media_type415Content-Type not accepted here.
rate_limited429Throttled.
server_error500Unexpected server-side failure. Retry; alert if it persists.
service_unavailable502/503/504Temporarily unavailable. This is the retryable 5xx — back off and retry, unlike server_error.

Error codes ​

Every code maps to exactly one type, permanently. Codes are additive-only: they are never renamed or repurposed, so a code you handle today keeps its meaning.

Status-level codes are equal to their type — invalid_request, unauthorized, payment_required, forbidden, not_found, method_not_allowed, not_acceptable, conflict, payload_too_large, unsupported_media_type, rate_limited, server_error, service_unavailable.

These refine one of those:

StatusCodetypeMeaning
400count_pagination_disabledinvalid_requestOffset and COUNT are disabled for this resource. Use ?paginate=cursor.
400ordering_not_cursor_eligibleinvalid_requestThis ordering can't back a keyset cursor. Use offset.
400workflow_outside_allowlistinvalid_requestThe workflow is not in the work item type's allowlist.
403workflow_transition_deniedforbiddenA workflow rule blocked the create or state transition.
403workflow_mandatedforbiddenThe workspace requires one workflow for this type. Projects can't pick one.
403workflow_assigned_by_workspaceforbiddenThe workspace pinned this type's workflow for the project.
409states_managed_at_workspaceconflictStates are governed at the workspace level for this workspace.
409states_managed_at_projectconflictStates and workflows are managed in each project. Governance is off.
409templates_managed_at_workspaceconflictTemplates are managed at the workspace level for this workspace.
409work_item_types_managed_at_workspaceconflictWrong mode — this workspace manages work item types at the workspace level.
409work_item_types_managed_at_projectconflictWrong mode — this workspace manages work item types at the project level.
409governance_migration_in_progressconflictA governance migration is running. Every write in the workspace returns this until it finishes.
409workflow_in_useconflictThe workflow is the default, or a project pick, pin, or allowlist uses it.
409workflow_state_orphansconflictThe change strands work items. Send a state_mapping that covers them.
409workflow_state_dependenciesconflictTransitions still reference the state. Remove them first.
409workflow_allowlist_excludes_in_useconflictThe allowlist drops workflows that projects use. Resend with acknowledge.
409workflow_pins_unavailableconflictThe type is in required mode, so per-project pins don't apply.
500listing_authorization_misconfiguredserver_errorA server-side authorization guard tripped. Report it; retrying won't help.

Handle the codes you care about, default the rest

The code set is deliberately large — a code exists when a client would write a different branch for it, which is why count_pagination_disabled ("switch to cursor") and ordering_not_cursor_eligible ("switch to offset") are separate. A big enum costs you nothing: match what you act on, and send everything else to a type-based default arm.

Validation failures ​

A 400 invalid_request is the only code that carries errors[]. Each entry names one rejected field, and a single response can carry several — the API validates the whole payload rather than stopping at the first problem, so one round trip tells you everything to fix.

A few checks return errors as an object instead of a list:

  • The template_data shape check on project templates keys errors by the failing template_data key. Its detail names what failed, for example Invalid work item template at index 2.
  • The chain checks on workspace workflows return errors as {"error": "…"}, with detail set to Invalid workflow chain. or Invalid state ids.

Query parameters are validated too. Enum-backed parameters such as priority, state_group, state group, and module status are checked against their allowed values, so a typo returns a clean 400 rather than a silently empty list.

?fields= and ?expand= are strict in the same way, and their messages are written to be self-correcting — they name the closest match and enumerate the valid set, so a client can fix itself in one round trip:

json
{
  "type": "invalid_request",
  "code": "invalid_request",
  "detail": "One or more fields failed validation.",
  "errors": [
    {
      "field": "fields",
      "code": "invalid",
      "message": "Unknown field(s): titel — did you mean 'title'? Valid fields: all, id, name, identifier, …"
    }
  ]
}

Naming an expandable relation in ?fields= (or a field in ?expand=) tells you which parameter you actually wanted rather than guessing. See Sparse fields.

Surface field and message verbatim

When you are relaying an error to a human — a CLI, a form, a Slack notification — the field/message pairs are already specific enough to act on. Passing them through beats collapsing them into "invalid request". Use the per-entry code when you need to branch programmatically.

Feature gating — 402 ​

Endpoints that belong to a paid or optional feature answer 402 payment_required when the feature is off, rather than 403 or 404:

Response402
json
{
  "type": "payment_required",
  "code": "payment_required",
  "detail": "This feature is not available on your current plan."
}

Two things can produce it: the feature isn't in your plan, or it is but hasn't been switched on for the workspace or project. Both are configuration, not permissions — retrying or widening your token's scopes will not help. Affected surfaces include customers, releases, project releases, workflows, work item type governance, automations, worklogs, custom relation definitions, page templates, project templates, project states, and recurring work items.

Because 402 is declared on every operation, treat it as a first-class arm in shared client code rather than something only certain endpoints can return.

Rate limiting ​

Requests are throttled per token, with a separate bucket per token class — API keys, OAuth tokens, workspace tokens, service tokens, and external tokens. Exceeding a bucket returns 429 rate_limited with a Retry-After header.

Response429
json
{
  "type": "rate_limited",
  "code": "rate_limited",
  "detail": "Rate limit exceeded."
}

Wait the number of seconds in Retry-After before retrying. Backing off on a fixed schedule instead — or retrying immediately — keeps you in the throttle. Because the buckets are per token, splitting a bulk job across several tokens does not merge their limits, but it does multiply the load on the workspace.

Mode conflicts ​

A workspace manages work item types in exactly one mode: at the project level or at the workspace level. Both sets of endpoints exist at all times, so writing to the surface that is not currently in use returns 409 — not 404 or 403. The capability is real, it just lives on the other surface.

  • Writing to a project-mode endpoint while workspace mode is on → work_item_types_managed_at_workspace.
  • Writing to a workspace-mode endpoint while project mode is on → work_item_types_managed_at_project.

Reads are never blocked by mode

Only writes conflict. You can list and read types and properties on either surface regardless of the active mode — a project still surfaces its imported types while the workspace is in workspace mode.

The code tells you where to send the write. See Work item type modes for the full picture.

States, workflows, and templates under governance ​

Workspace governance manages states, workflows, and page templates at the workspace instead of in each project. Both surfaces exist, and a call to the one that is not in use returns 409. Unlike type modes, some governance-only endpoints refuse reads as well as writes.

  • Writing a project's states while the workspace is governed returns states_managed_at_workspace. Use the workspace states and workspace workflows instead.
  • Writing workspace states in an ungoverned workspace returns states_managed_at_project. Reading them still works.
  • In an ungoverned workspace, every call to these endpoints returns states_managed_at_project, reads included: the workspace workflow catalog with its states, transitions, and hooks, work item type governance, a project's work item type workflows, and the workflow fallback preview. Use the project's states and workflows.
  • Writing a project's page templates while the workspace is governed returns templates_managed_at_workspace. Use the workspace page templates.
  • Writing a project's labels while the workspace is governed returns 400 with a v1-shaped body, {"error": "This resource is managed at the workspace level", "code": "workspace_managed"}, instead of a problem document. See Labels.

Two workflow codes carry an extra top-level member that describes what the change would affect:

  • workflow_state_orphans carries orphans, an object with its own orphans list and an invalid_targets list. Each orphans entry names a state that would be dropped, with state_id, state_name, count, and a per_project breakdown. Map each state_id to a target in state_mapping and resend. invalid_targets lists the state_mapping targets that aren't in the new chain. A target outside the chain returns this 409 even when no work items would be stranded.
  • workflow_allowlist_excludes_in_use carries workflows, a list of the in-use workflows (id, name) that the allowlist would drop. Resend with acknowledge: true to drop those picks.

Pagination errors ​

Both pagination 400s mean the same thing: the pagination style and the request do not fit together.

  • ordering_not_cursor_eligible — some orderings sort by meaning rather than by a stored column, for example ?order_by=priority. Those cannot back a keyset cursor. Drop ?paginate=cursor and use offset for that ordering.
  • count_pagination_disabled — offset with a COUNT is unavailable for this resource. Switch to ?paginate=cursor.

See Pagination for the two envelopes and when to prefer each.

  • Authentication — what separates 401, 403, and a tenant-safe 404.
  • Pagination — offset and cursor styles.
  • Introduction — request conventions, including why a missing trailing slash bites.