Skip to content
TasKadence Developers

What this is: the one shape every error has, and the list of types. When you need it: writing the except / catch around any call.

Terminal window
curl -i "$TASKADENCE_API_URL/v1/tasks/T0000000" \
-H "Authorization: Bearer $TASKADENCE_TOKEN"

Every error is application/problem+json (RFC 9457):

FieldTypeMeaning
typestringabout:blank or a urn:taskadence:problem:* identifier
titlestringe.g. "Forbidden"
statusintegere.g. 403
detailanyHuman-readable explanation (a string; for a 422, the list of validation errors)
instancestringe.g. "/v1/tasks/T123"
request_idstringe.g. "9b2f1c1e-8c1a-4a53-9f9e-0f5f1f2d7c11"
errors (optional)arrayStructured failures: validation errors, or {loc, msg, allowed} for a bad parameter
mfa (optional)objectOn an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization's requirement; step_up: this action needs a second step)

Branch on status and type. Show detail to people. When you ask for help, quote request_id — it is also the X-Request-ID response header.

StatustypeWhat happened — and what to do
423…:organization-restrictedThe organization's billing owner has no working card: it cannot add people until one is saved. errors[0] is {state, since}.
423…:organization-read-onlyThe organization's billing owner has had no working card for 3 days: it is read-only until one is saved. Nothing is deleted. Reads still work, and so do billing, deleting the organization and the writes that reduce access or ask for help. errors[0] is {state, since}.
423…:organization-lockedNo working card for 30 days: the organization is locked and cannot be opened until its billing owner saves one; it is deleted on day 90. Only its own read and your own membership answer; a token gets this everywhere. errors[0] is {state, since, archive_on, delete_on}.
409…:billing-owner-must-hand-overThis person is the organization's billing owner. Hand billing to another owner first (handover_route).
anyabout:blankA plain HTTP error; the status and detail say everything.
422…:validationThe request body or query did not validate. errors lists each failure (loc, msg, type).
400 · 422…:invalid-parameterA query parameter (400) or a body field with a fixed set of values, such as a status (422), is outside what the operation accepts; errors[].allowed lists the valid values.
412…:precondition-failedIf-Match did not match the resource's current ETag - re-read it and retry.
422…:idempotency-key-reusedThis Idempotency-Key was first used for a different request (method, path or body).
409…:idempotency-key-in-flightThe first request with this Idempotency-Key has not finished; retry shortly.
400…:idempotency-key-invalidIdempotency-Key must be 1–255 printable ASCII characters.
429…:rate-limitToo many requests with this access token, or a signed-in user, or an address; wait Retry-After seconds (X-RateLimit-* say where you stand).
503…:database-unavailableThe database did not answer this request, after retries. Nothing was applied: retry after Retry-After seconds.
409…:member-not-linkedThis member's sign-in is not linked to their TasKadence profile yet, so they cannot be subscribed to a task or react to a comment; they need to sign in again. errors[0].user_ids names them.
500…:internalAn unexpected server error. Quote request_id to support.
401…:token-invalidThe access token is unknown or malformed (or its principal no longer exists).
401…:token-expiredThe access token is past its expires_at; mint a new one.
401…:token-revokedThe access token was revoked (by its owner, an admin, a rotation, or its service account's deactivation).
403…:insufficient-scopeThe access token does not carry the scope this operation needs (errors[0].required; null = not available to tokens).
403…:test-token-read-onlyA tkd_test_ token can authenticate and read, never write.
403 · 422…:token-policyThe organization's token policy refuses this token (personal tokens off, expiry required, or past the maximum lifetime).
422…:url-refusedThe webhook URL is refused: not https, carries credentials, or resolves to a private, loopback, link-local, metadata, multicast or reserved address (errors[0].reason).
403 · 409…:mfa-requiredThe organization requires two-step sign-in and this session signed in with one step. mfa.enrolled says whether the person has an authenticator app set up (sign in with it) or must set one up first; mfa.required_for is all or admins. Access tokens are not affected.
403…:email-unverifiedThe signed-in person has not confirmed their email address yet. Confirm it from the email that was sent (or ask for a new one), then retry. Access tokens are not affected.
413…:upload-too-largeThe file is over the size limit (detail names it): 100 MB (100,000,000 bytes) for attachments and project files, 2 MB (2,000,000 bytes) for an avatar. A zip whose contents unpack to over 10 times the limit counts as too large.
415…:upload-type-not-allowedThe file's type is not allowed (detail lists the allowed types). Executables, scripts, HTML, SVG, XML and macro-enabled Office files are never accepted, nor a zip holding one.
415…:upload-type-mismatchThe file's contents are not what its extension (or its declared content type) says, for example an executable named .png, or a .txt that is not UTF-8 text.
422 · 503…:upload-rejectedThe malware scan refused the file (422), or could not scan it right now (503: retry later).
403…:sso-requiredThe signed-in person's email domain belongs to an organization that requires single sign-on, and this session signed in another way (an email code, Google or Microsoft). Sign in with SSO. Access tokens are not affected.
402…:storage-limit-reachedThe organization has used its included storage and no card keeps it going, so new uploads are paused. bytes_used, included_bytes and manage_url (where an owner adds a card) are in the body. Reads, downloads and deletes still work.
409…:sprint-project-mismatchA task joins only a sprint of its own project: the sprint belongs to another project, or the task has none (errors[0] names both projects; code sprint_project_mismatch).
409…:sprint-not-emptyA sprint moves to another project only while it holds no task; take its tasks out first (code sprint_not_empty, errors[0].task_count).
410…:goneThe route was removed in release 11 with the account level: an organization is now the top level. detail says where to go and successor names the route.
410…:removed-in-release-10The route was removed in release 10 (teams, sections and test sprints left the product). successor names what to call instead, when there is one; changelog links the docs changelog entry.

…: is urn:taskadence:problem:. Match on the identifiers, not on title or detail; responses from before the rename used urn:tasksmate:problem: (see the changelog).

New in release 11: billing-owner-must-hand-over (409) and organization-restricted, organization-read-only and organization-locked (423, errors[0] carries the state and its dates), all explained in Organizations and billing, and gone (410, a route release 11 removed; see Versioning). The 402 an upload gets when an organization’s storage is full is on Storage and billing. removed-in-release-10 is the same for release 10.

The Python SDK raises one exception class per type (Python SDK → Errors).