Skip to content

Errors

Every v2 error is an RFC 9457 problem document, served as application/problem+json. The shape is the same whether the failure is a typo in a request body or a throttled client, so one error handler covers the whole API.

The problem shape

Fields

  • type string (uri)

    A URI identifying the error class, for example https://api.plane.so/errors/validation_error. Stable, but meant for humans following the link — do not parse it.

  • title string

    A short human-readable summary of the error class, the same for every occurrence.

  • status integer

    The HTTP status code, repeated in the body so a logged payload is self-contained.

  • code string

    The stable machine-readable identifier. This is the field to branch on.

  • detail string

    A human-readable explanation of this specific occurrence. Written for a developer reading a log — the wording can change between releases.

  • errors array

    Present only on validation_error. One entry per rejected field, each with a field and a message.

Branch on code, not on status or prose

Two different failures share status 403 (forbidden and workflow_transition_denied) and three share 400. The HTTP status alone cannot tell them apart.

detail is written for people and its wording is not part of the contract. Matching on its text will break.

Response400
json
{
  "type": "https://api.plane.so/errors/validation_error",
  "title": "Validation Error",
  "status": 400,
  "code": "validation_error",
  "detail": "One or more fields failed validation.",
  "errors": [
    { "field": "name", "message": "This field is required." },
    { "field": "group", "message": "\"in_review\" is not a valid choice." }
  ]
}
Response404
json
{
  "type": "https://api.plane.so/errors/resource_not_found",
  "title": "Not Found",
  "status": 404,
  "code": "resource_not_found",
  "detail": "The requested resource was not found."
}

Handling errors

Read code first. Fall back to status only for codes you do not recognize yet — new codes can appear as v2 grows.

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"}'

Error codes

StatusCodeMeaning
400validation_errorMalformed or invalid body or query parameter. Includes an errors[] array.
401unauthorizedMissing or invalid credentials.
403forbiddenAuthenticated, but your role or token scope can't do this.
403workflow_transition_deniedA workflow rule blocked the create or state transition.
404resource_not_foundNo such resource, or it's outside your tenant.
405method_not_allowedMethod not supported on this route — most often a PUT.
409conflictUniqueness or protected-state conflict.
409work_item_types_managed_at_workspaceWrong mode — this workspace manages work item types at the workspace level.
409work_item_types_managed_at_projectWrong mode — this workspace manages work item types at the project level.
429rate_limitedThrottled. Honor the Retry-After header.

Two more 400 codes come from pagination:

StatusCodeMeaning
400count_pagination_disabledOffset and COUNT are disabled for this resource. Use ?paginate=cursor.
400ordering_not_cursor_eligibleThis ordering can't be combined with cursor pagination. Use offset.

An unexpected server-side failure returns 500 with code internal_error. Retry it; if it persists, it is not something your request can fix.

Validation failures

A 400 validation_error 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.

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.

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".

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": "https://api.plane.so/errors/rate_limited",
  "title": "Rate Limited",
  "status": 429,
  "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.

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.