Skip to main content

Errors

Every failed request answers with Content-Type: application/problem+json and a JSON body. The status code tells you what happened at the HTTP level; the code field tells you what happened in the application, and it is the field your integration should branch on.

The envelope​

{
"title": "errors.api.personalAccessTokenLimitReached.title",
"titleEnglish": "Personal access token limit reached",
"status": 409,
"code": "PERSONAL_ACCESS_TOKEN_LIMIT_REACHED",
"detail": "errors.api.personalAccessTokenLimitReached.detail",
"detailEnglish": "You have reached the maximum number of active personal access tokens. Revoke one before creating another.",
"errors": [
{"message": "PERSONAL_ACCESS_TOKEN_LIMIT_REACHED", "location": "code"}
],
"details": {}
}

That is a real response: it is what you get when you try to create an eleventh personal access token.

FieldAlways presentWhat it holds
typenoA URI identifying the problem type. Omitted when empty, which in practice is always.
titleyesA translation key for the summary, such as errors.api.notFound.title.
titleEnglishyesThe same summary as English text.
statusyesThe HTTP status code, repeated in the body.
codeyesThe stable machine-readable code, UPPER_SNAKE_CASE. Branch on this.
detailyesA translation key for the explanation, such as errors.api.personalAccessTokenNotFound.detail.
detailEnglishyesThe same explanation as English text, with any parameters already interpolated.
instancenoA URI identifying the specific occurrence. Omitted.
errorsnoAn array of {message, location, value} entries. Absent when there are none.
translationParamsnoInterpolation values used by the translation keys. Omitted when there are none.
detailsyesA typed payload for the error. {} when the error carries none.

Only status, code and details are guaranteed by the schema. Everything else is omitted when empty rather than sent as null, so read defensively.

Translation keys versus text​

title and detail are keys, not sentences. They are stable, they are safe to match on, and they resolve to whatever language the caller's own interface speaks. titleEnglish and detailEnglish are the human-readable versions of the same two strings, in English only.

If you log an error, log code and detailEnglish. If you display it to someone, either display detailEnglish or resolve detail yourself against your own translations. Do not display the key.

When a message has variables in it, they arrive twice: interpolated into detailEnglish, and separately in translationParams so that you can build the sentence yourself.

{
"title": "errors.api.validationFailed.title",
"titleEnglish": "Invalid request",
"status": 422,
"code": "VALIDATION_FAILED",
"detail": "errors.api.unknownPersonalAccessTokenScope.detail",
"detailEnglish": "The scope transactions:admin is not a valid personal access token scope.",
"errors": [
{"message": "validation_failed", "location": "code"}
],
"translationParams": {"scope": "transactions:admin"},
"details": {}
}

code and details​

code is always populated and always upper case, even where the underlying failure was generic. It is the only field designed to be compared in code.

details is always present. Most errors have no typed payload and send an empty object, so details being {} is normal and is not a sign that something is missing. Where an error does carry a payload, the shape is specific to that code — for example IDEMPOTENCY_KEY_CONFLICT puts the offending field and key there, as shown in Making Requests.

The errors array​

errors lists individual problems, each with a message, a location naming the field or place it applies to, and sometimes the rejected value. Field validation failures appear here, one entry per field.

The array also carries a bookkeeping entry whose location is code. Its message is the application code in its original spelling, which is not always the spelling of the top-level code: the generic errors are written lower_snake_case internally, so a 422 sends VALIDATION_FAILED at the top level and validation_failed in the entry, while a specific code such as PERSONAL_ACCESS_TOKEN_LIMIT_REACHED is already upper case and appears the same in both places. Branch on the top-level code, and filter the code entry out before showing the list to a person.

Status codes​

StatusCodeMeaning
400BAD_REQUESTThe request could not be understood at all.
401UNAUTHENTICATEDNot signed in. An operation needed a signed-in user and the request had none.
401UNAUTHORIZEDNot signed in. The same meaning, raised by the framework before the operation ran.
402PLAN_FEATURE_REQUIREDThe workspace owner's plan does not include the feature this request needs. details.requiredFeature names the plan feature (for example bills). Returned by the bill write endpoints (bills), by creating an attachment (POST /v1/workspaces/{workspaceID}/attachments, receipt_attachments; a business logo needs business_tools instead; listing, downloading and deleting attachments keep working after a downgrade) and the business profile and numbering writes (business_tools); reads still work so data created on an earlier plan stays visible. If the plan cannot be checked, the request fails with 503 instead; retry it.
402PLAN_LIMIT_EXCEEDEDThe request would go over a plan limit. Debt plan writes use it too when the owner's plan does not include debt management: limit_key is debt_management. Debt reads still work after a downgrade, so a plan set up earlier stays visible. The errors list has a limit_key entry naming the limit (for example workspaces.max) and a limit entry with the plan's maximum, and translationParams carries limit and current usage. Sharing is limited per account, not per workspace: inviting or adding a new person once the owner has reached their unique-people cap returns this with limit_key account_shares.max.
402PLAN_LIMIT_EXCEEDED (business_workspaces.max)Creating, converting or cloning into a business workspace when the owner has no business workspace left. See Workspace Kinds.
402PLAN_LIMIT_EXCEEDED (clients.max)Creating or restoring a client when the owner's plan has no client left. See Clients.
403SECOND_FACTOR_REQUIREDA browser session (cookie or X-Session-Token) was created with a password only, but the user has a second factor (authenticator app, recovery codes or a security key) turned on. Sign in again with the second factor; the app sends the user to /auth/login?aal=aal2. A session that signed in with a passkey, or with a password and a second factor, does not get it. Personal access tokens never receive it. The OAuth login step (POST /oauth2/budgetthing/login/accept) answers it too, instead of accepting the login. Public routes (for example shared documents and the plan list) still answer normally for such a session, and only routes that need a signed-in user answer 403. A session whose second-factor status cannot be determined is never accepted; see SECOND_FACTOR_CHECK_UNAVAILABLE.
403RECENT_AUTHENTICATION_REQUIREDAn interactive (browser) session asked for a sensitive action, but its last real sign-in is older than the window. details.operation is the operation ID and details.maxAgeSeconds the window (900, 15 minutes). The sign-in time also counts as missing when it is unknown or implausibly far in the future. Sign in again (a Kratos refresh login) and repeat the request. Personal access tokens never receive it: the operations it guards are either refused to tokens already or, for creating or repointing a webhook, governed by scopes alone. See Operations that need a recent sign-in.
404CLIENT_NOT_FOUNDNo client with that ID in the workspace.
409CATEGORY_HAS_BALANCEDeleting a category (DELETE /v1/workspaces/{workspaceID}/categories/{categoryID}) that still holds money, or deleting a credit card or loan (DELETE /v1/workspaces/{workspaceID}/accounts/{accountID}/permanent) whose payment category still holds money. The balance is the net of every assignment, funding and category transfer, future months included. Nothing is deleted or moved: move the money to Ready to Assign or another category with a category transfer, then retry. The code entry in errors reads category_has_balance.
409RESOURCE_LIMIT_EXCEEDEDThe workspace would go over a limit Budget Thing sets on every workspace, whatever the plan: accounts, categories, payees, tags or transactions, or splits on one transaction. The errors list has a limit_key entry naming the resource (for example transactions), and translationParams carries limit and current. Restoring a backup (restore-workspace-backup) that holds more of one of them than a workspace may returns it too, and nothing is restored.
409WORKSPACE_NOT_BUSINESSA business operation (clients, projects, quotes, invoices, business profile, document numbering) was called in a personal workspace, or a backup holding business records was restored into one. See Clients and Business Profile and Document Numbering.
422BACKUP_TOO_LARGEThe backup archive passed to restore-workspace-backup lists more than 5,000,000 records in its manifest, summed over every file. It is refused before any record is read and nothing is restored. A backup Budget Thing made of a workspace within its limits always fits.
429BACKUP_RESTORE_IN_PROGRESSrestore-workspace-backup was called while another backup restore is running for the same workspace owner, or the API instance is already running its limit of concurrent restores. Nothing is restored and the upload is kept: repeat the request once the other restore has finished.
422METADATA_INVALID_KEYA metadata key is empty, longer than 40 characters or uses a character outside A-Z a-z 0-9 _ . -. translationParams.key names it. Also returned for a bad key in a metadata[key]=value list filter.
422METADATA_VALUE_TOO_LONGA metadata value is longer than 500 characters. translationParams.key names the key.
422METADATA_VALUE_EMPTYA metadata[key]= list filter has an empty value. translationParams.key names the key. (An empty value in a create or update body is not an error: it removes the key.)
422METADATA_INVALID_VALUEA metadata value has a control character other than tab. translationParams.key names the key.
422METADATA_TOO_MANY_KEYSThe record would hold more than 50 metadata keys once the update is merged.
422METADATA_TOO_MANY_FILTERSA list was filtered by more than 10 metadata keys.
409CLIENT_CODE_TAKENAnother client in the workspace already uses that short code. details.code repeats it.
409CLIENT_CODE_IN_USEA client's code can't change once business records use it. details.resource names the kind of record.
409CLIENT_IN_USEA client can't be deleted while business records reference it. Archive it instead.
404PROJECT_NOT_FOUNDNo project with that ID in the workspace. See Projects and tasks.
404PROJECT_TASK_NOT_FOUNDNo task with that ID in the project.
409PROJECT_CLIENT_ARCHIVEDA project can't be started for an archived client.
409PROJECT_CODE_TAKENAnother project in the workspace already uses that short code. details.code repeats it.
409PROJECT_CODE_IN_USEA project's code can't change once business records use it. details.resource names the kind of record.
409PROJECT_ARCHIVEDAn archived project is read-only; restore it to change it, its tasks or its time.
409PROJECT_IN_USEA project can't be deleted while business records reference it or one of its tasks. Archive it instead.
409PROJECT_TASK_IN_USEA task can't be deleted while business records (including logged time, a running timer, a quote line or an invoice line) reference it.
404PROJECT_EXPENSE_NOT_FOUNDNo project expense with that ID in the workspace. See Project expenses.
404TIME_ENTRY_NOT_FOUNDNo time entry with that ID in the workspace. See Time entries and timer.
404TIMER_NOT_RUNNINGThe caller has no running timer in the workspace.
409TIMER_ALREADY_RUNNINGThe caller already has a running timer; details name it. Stop it, or start with switchFromRunning.
404QUOTE_NOT_FOUNDNo quote with that ID in the workspace. See Quotes.
404QUOTE_LINE_NOT_FOUNDNo line with that ID in the quote.
409QUOTE_NOT_DRAFTA quote that has been sent can't be changed or deleted; create a new version. details.status repeats its status.
409QUOTE_INVALID_TRANSITIONThe quote's status doesn't allow that action (sending a sent quote, accepting a draft). details.status and details.action repeat them.
409QUOTE_ALREADY_HAS_PROJECTA quote's project is set once: linking a quote that already has one is refused. See Quotes.
409QUOTE_CLIENT_ARCHIVEDA client-only quote can't be created, changed or sent for an archived client.
409QUOTE_HAS_INVOICESA quote that has invoices can't get a new version; create a separate quote for the change.
404INVOICE_NOT_FOUNDNo invoice with that ID in the workspace. See Invoices.
404INVOICE_LINE_NOT_FOUNDNo line with that ID in the invoice.
409INVOICE_NOT_DRAFTAn invoice that has been issued can't be changed or deleted; void it. details.status repeats its status.
409INVOICE_INVALID_TRANSITIONThe invoice's status doesn't allow that action (issuing an issued invoice, voiding a draft). details.status and details.action repeat them.
409INVOICE_HAS_PAYMENTSAn invoice with payments can't be voided. details.paymentCount says how many.
404INVOICE_PAYMENT_NOT_FOUNDNo payment with that ID on the invoice.
404INVOICE_SCHEDULE_NOT_FOUNDNo recurring invoice schedule with that ID in the workspace.
409INVOICE_SCHEDULE_EXISTSThe project already has a recurring invoice schedule (a client can have several client-only ones). details.scheduleId names it.
409TAX_SET_ASIDE_PAYMENT_NOT_IN_BUDGETThe payment has no income transaction, so there is no money in the budget to set aside.
409TAX_SET_ASIDE_ALREADY_CONFIRMEDMoney was already set aside for the payment, or the set-aside was reversed.
422TAX_SET_ASIDE_NOT_CONFIGUREDNo set-aside percentage, or no usable category, in the business profile.
422TAX_SET_ASIDE_AMOUNT_INVALIDThe set-aside amount is zero, negative or more than the payment.
422TAX_SET_ASIDE_CATEGORY_INVALIDThe set-aside category isn't an active category of this workspace that can receive funds.
404TAX_RATE_NOT_FOUNDNo tax rate with that ID in the workspace. See Tax rates.
409TAX_RATE_NAME_TAKENAnother active tax rate already has that name. Names are compared without regard to case. Also returned when unarchiving a rate whose name an active rate has taken.
409TAX_RATE_IN_USEA quote line, an invoice line or a recurring schedule line uses the tax rate, so it can't be deleted. Archive it instead.
422TAX_RATE_INVALIDA tax rate needs a name of 1 to 40 characters and a percent from 0% to 100% (percentE4 from 0 to 1000000).
422TAX_RATE_LIMITA workspace can have up to 20 active tax rates. Archive one to add or restore another.
422TAX_RATE_ARCHIVEDA line uses an archived tax rate. Returned when a line is given one, and when an invoice is issued or a quote is sent with a taxed line on one (an applied-deposit line is the only exception). Move the line to an active rate or to no tax. See Invoices.
422DEPOSIT_TAX_RATE_REQUIREDThe quote's lines have different tax rates, or mix taxed and untaxed lines, so a deposit needs taxRateId (a rate ID, or an empty string for no tax). See Invoices.
422ACCENT_LOW_CONTRASTThe document style accent is too light to read against its own tint. details.suggestedHex is the nearest darker color that passes.
409INVOICE_NOT_PAYABLEOnly an issued invoice takes payments. details.status repeats its status.
409TRANSACTION_HAS_INVOICE_PAYMENTSA transaction change (a lower amount, converting to a transfer) would leave its linked invoice payments without enough behind them. details.allocated and details.paymentCount say what rests on it.
409QUOTE_NOT_BILLABLEOnly lines of an accepted quote can be invoiced. details.quoteId and details.status name the quote.
409PROJECT_EXPENSE_BILLEDAn invoice bills the project expense, so it can't be edited or deleted; void the invoice. details.projectExpenseId names it and details.invoiceId the invoice.
409PROJECT_EXPENSE_WRITTEN_OFFAn invoice's billing wrote the project expense off, so it can't be edited or billed until that invoice is deleted or voided. details.projectExpenseId names it and details.invoiceId the invoice. See Project expenses.
409PROJECT_EXPENSE_ALREADY_LINKEDThe transaction is already linked to a project. details.projectExpenseId names the link.
409TRANSACTION_BILLED_ON_INVOICEA transaction's project expense is billed on an invoice, so the transaction can't be deleted or lowered below the billed cost. details.transactionId, details.projectExpenseId and details.invoiceId name them. See Project expenses.
409TRANSACTION_HAS_PROJECT_EXPENSEA transaction linked to a project expense can't become a transfer; delete the link first.
409TIME_ENTRY_BILLEDTime that an invoice bills can't be edited, deleted, restored or billed again; void the invoice. details.timeEntryId names the entry and details.invoiceId the invoice.
409TIME_ENTRY_WRITTEN_OFFTime that billing wrote off can't be edited or billed until it is restored. details.timeEntryId and details.invoiceId name them. See Time entries and timer.
409INVOICE_DEPOSIT_APPLIEDOther invoices apply the deposit this invoice bills, so it can't be voided. details.quoteId and details.applied say which and how much.
422DEPOSIT_EXCEEDS_QUOTEThe deposits on a quote's invoices would add up to more than its subtotal (the quote total before tax). details.quoteId and details.available say how much is left.
422NO_DEPOSIT_TO_APPLYThe quote has no billed deposit left to apply. details.quoteId names it.
422DEPOSIT_EXCEEDS_AVAILABLEAn applied deposit is more than the deposit left to apply. details.quoteId and details.available say how much.
422PAYMENT_EXCEEDS_BALANCEAn invoice payment is more than the invoice still owes. details.balance says how much.
422PAYMENT_TRANSACTION_NOT_INCOMEOnly an income transaction can be linked to an invoice payment.
422PAYMENT_TRANSACTION_OVER_ALLOCATEDThe invoice payments linked to a transaction can't add up to more than it. details.available says how much is free.
404SHARE_LINK_NOT_FOUNDThe quote or invoice has no share link with that ID. See Shared documents.
404SHARED_DOCUMENT_NOT_FOUNDA public share link doesn't open a document: unknown, expired, revoked, or the document is no longer shareable. The answer is the same for every cause.
409DOCUMENT_NOT_SHAREABLEOnly a sent quote or an issued invoice can be shared.
409SHARE_LINK_LIMIT_REACHEDThe document already has the most active share links (10).
422INVOICE_PAYMENT_METHOD_RESERVEDThe stripe payment method is reserved and can't be set when recording or changing a payment.
409DOCUMENT_NOT_SENDABLEOnly a sent quote or an issued invoice can be emailed. See Emailing documents.
409EMAIL_RECIPIENT_SUPPRESSEDEarlier mail to this address bounced for good or was reported as unwanted. Correct the contact's address and try again.
409EMAIL_SENDING_PAUSEDSending email from the workspace is paused because too much mail in the last 30 days bounced for good or was reported as unwanted. It lifts by itself as those reports age. See Sending pause.
409EMAIL_REPLY_TO_ALREADY_VERIFIEDThe business's reply-to address is already verified. See Email settings.
422EMAIL_REPLY_TO_INVALIDThe reply-to address isn't one valid email address.
422EMAIL_REPLY_TO_REQUIREDNo reply-to address is saved, so there is nothing to verify.
422EMAIL_REPLY_TO_CODE_INVALIDThe verification code is wrong. details.attemptsLeft says how many guesses are left.
422EMAIL_REPLY_TO_CODE_EXPIREDThe verification code expired. Request a new one.
422EMAIL_FROM_NAME_INVALIDThe sender name has an address or @, passes for Budget Thing, or is over 80 characters.
429EMAIL_REPLY_TO_CODE_ATTEMPTS_EXCEEDEDFive wrong guesses used the code up. Request a new one.
429EMAIL_REPLY_TO_CODE_RATE_LIMITEDA verification code was requested less than a minute ago.
422EMAIL_RECIPIENT_REQUIREDThe client has no contact with an email address.
422EMAIL_RECIPIENT_NOT_ALLOWEDThe address isn't a contact of the document's client.
422EMAIL_ATTACHMENT_TOO_LARGEThe PDF is too large to send by email.
502EMAIL_SEND_FAILEDThe mail server did not accept the message. The attempt is kept as failed; try again.
503SECOND_FACTOR_CHECK_UNAVAILABLEA browser session (cookie or X-Session-Token) could not be checked for a second factor because the identity service is unreachable or failing. The session is not accepted; retry in a moment. The app shows its service-unavailable page.
503EMAIL_NOT_CONFIGUREDThis deployment has no outgoing mail server.
500DOCUMENT_RENDER_FAILEDThe PDF of a quote or invoice could not be created. The document is unchanged; ask again. See Invoices.
422INVOICE_EMPTYAn invoice needs at least one line before it is issued.
422INVOICE_TOTAL_NOT_POSITIVEAn invoice's total, tax included, must be above zero to issue it.
422INVOICE_NUMBERING_CODE_MISSINGThe numbering pattern uses {PROJECT} and the project has no code, or the invoice is client-only and has no project.
422INVOICE_HAS_NO_PROJECTA client-only invoice can't bill logged time or link a line to a project task. It can bill quote lines and deposits of its own client's accepted quotes. See Invoices.
422INVOICE_CLIENT_MISMATCHAn invoice was created for a project and a different client than the project's.
409INVOICE_CLIENT_ARCHIVEDA client-only invoice can't be created or changed for an archived client.
422TIME_ENTRIES_MULTIPLE_PROJECTSA bill or preview of logged time names entries of more than one project; time is billed one project at a time. details.projectIds lists the projects.
422PROJECT_EXPENSE_NOT_BILLABLEA project expense can't be invoiced: it is flagged not billable, or belongs to another project than the invoice's. details.reason says which.
422PROJECT_EXPENSES_MULTIPLE_PROJECTSA bill names project expenses of more than one project; bill one project per call. details.projectIds lists them.
422TIME_ENTRY_NOT_BILLABLETime can't be invoiced: it isn't billable, has no hourly rate, or belongs to another project. details.reason says which.
422QUOTE_EMPTYA quote needs at least one line before it is sent.
422QUOTE_DEPOSIT_EXCEEDS_TOTALA quote's deposit is more than its subtotal (before tax).
422QUOTE_NUMBERING_CODE_MISSINGThe numbering pattern uses {PROJECT} and the project has no code, or the quote is client-only and has no project.
422QUOTE_HAS_NO_PROJECTA line of a client-only quote can't link to a project task. See Quotes.
422QUOTE_CLIENT_MISMATCHA quote was created for a project and a different client than the project's, or linked to a project of another client.
409STALE_BUDGET_SCHEDULE_VERSIONThe budget schedule changed since the version you edited. details.expectedVersion and details.currentVersion say which. Refresh and try again.
409STALE_CATEGORY_TARGET_VERSIONThe category's target changed since the version you edited. details name the resource and both versions. Refresh and try again.
409STALE_INVESTMENT_TARGET_VERSIONThe account's investment target changed since the version you edited. details name the resource and both versions.
404NOT_FOUND (category target)The category has no funding target. details.resourceId is the category.
422BUDGET_SCHEDULE_INVALID_KINDThe budget period type isn't one the schedule supports.
422BUDGET_SCHEDULE_ANCHOR_REQUIREDThe schedule needs an anchor date: the start of one known budget period.
422BUDGET_SCHEDULE_INVALID_INTERVALThe repeat interval isn't a whole number of at least 1 and within the maximum, or its unit isn't supported.
422BUDGET_SCHEDULE_INVALID_WEEK_STARTThe week start day isn't a valid weekday.
422BUDGET_SCHEDULE_INVALID_SEMI_MONTHLY_DAYSTwice-monthly budgeting needs two different start days, the first earlier than the second.
422BUDGET_SCHEDULE_INVALID_MONTHLY_START_DAYThe monthly start day must be between 1 and 31.
422BUDGET_SCHEDULE_UNSUPPORTED_FIELDA field doesn't apply to this budget period type and must be left empty.
422BUDGET_SCHEDULE_INVALID_EFFECTIVE_FROMA new schedule can only start on or after the earliest date that leaves already-planned periods unchanged.
422INVALID_BUDGET_PERIOD_STARTThe date isn't the first day of a budget period in the workspace.
422INVALID_BUDGET_PERIOD_RANGEThe requested budget period range isn't valid.
422CATEGORY_TARGET_INVALID_TYPEThe target type isn't a supported one.
422CATEGORY_TARGET_INVALID_RECURRENCEThe funding cadence isn't valid for that target type.
422CATEGORY_TARGET_INVALID_AMOUNTA target amount must not be negative.
422CATEGORY_TARGET_INVALID_DATEA by-date target needs a date, and no other target type takes one.
422INVALID_CATEGORY_TARGET_CATEGORYThe category can't hold a funding target.
409BANK_SYNC_RECONNECT_REQUIREDThe bank connection must be reconnected before it can be used again.
422BANK_SYNC_MANAGE_ACCOUNTS_UNSUPPORTEDThe connection's provider doesn't support managing additional accounts.
409WORKSPACE_HAS_BUSINESS_DATAA business workspace can't be converted back to personal while it still holds business records. details.resource names the kind of record that remains (client).
409DOCUMENT_NUMBER_CONFLICTThe rendered number is already used by another document. Nothing was issued and the sequence did not move. details.number is the number.
409DOCUMENT_NUMBER_SEQUENCE_EXHAUSTEDA number sequence reached 999,999,999. Change the numbering pattern so it starts a new one.
422DOCUMENT_NUMBER_PATTERN_INVALIDA numbering pattern breaks the grammar. details.reason says how (needs_separator, missing_sequence, …) and details.position where.
422DOCUMENT_NUMBER_NEXT_VALUE_TOO_LOWThe next number is at or below one already issued. details.minimum is the lowest allowed.
422DOCUMENT_ISSUE_DATE_OUT_OF_ORDERThe issue date is in the future, or earlier than the latest date used in the number sequence. details.lastIssueDate is set only for the earlier-than-sequence case; for a future date details is empty.
422OWNERSHIP_TRANSFER_BLOCKEDHanding a workspace to this member would put their plan over a limit. details carries blocked, recipientName, the reasons (limit key, the plan's limit and the usage after the transfer) and an optional suggestedPlanId. See workspace ownership transfers, which also lists the other OWNERSHIP_TRANSFER_* codes.
410INVITATION_EXPIREDThe workspace invitation has lapsed (14 days after it was created or last resent). Returned only to someone who may know the invitation exists: the address it was sent to, or the workspace's owner. See workspace invitations.
429INVITATION_RESEND_TOO_SOONThe invitation was sent or resent less than 10 minutes ago.
429INVITATION_RATE_LIMITEDThe inviter, or the address being invited, has reached its sending limit. Deliberately generic: it says nothing about how many invitations an address has received.
403FORBIDDENNot allowed. The credential is valid but the action is refused.
404NOT_FOUNDThe requested item could not be found.
409CONFLICTThe action conflicts with the current state.
413HTTP_ERRORThe request body is larger than 1 MiB. See Limits.
422VALIDATION_ERRORThe request failed schema validation before any handler ran.
422VALIDATION_FAILEDThe request parsed, but a service rejected the values.
429—Rate limited. A different body; see Limits. The INVITATION_* 429 codes above use the standard problem body instead.
500INTERNAL_ERRORSomething went wrong on our side.

The Kratos sign-in host (auth.<domain>, not the API) also answers 429 when a client sends too many sign-in, registration, settings, recovery or verification submissions from one address. See Authentication.

Those are the generic definitions. Most failures narrow them: the status stays the same while code becomes something specific, such as PERSONAL_ACCESS_TOKEN_LIMIT_REACHED on the 409 above.

A 404 is used for anything you may not see, not only for things that do not exist. Revoking a token that belongs to somebody else answers 404, not 403.

Operations that need a recent sign-in​

These operations require the caller's interactive session to have signed in within the last 15 minutes. Otherwise they answer 403 RECENT_AUTHENTICATION_REQUIRED and do nothing. Each documents that 403 in the OpenAPI document.

Operation IDAction
create-personal-access-tokenCreate a personal access token
create-workspace-export, download-workspace-exportCreate or download a workspace export
create-workspace-backup, restore-workspace-backupBack up or restore a workspace
invite-workspace-member, add-workspace-member, update-workspace-memberInvite, add or change the role of a member
create-webhookCreate a webhook endpoint
sign-out-everywhereSign out of every other session and device
update-webhookOnly when the request changes the endpoint's url. Other edits are not affected.
decide-budgetthing-consentOnly when allowing an OAuth connection (both access levels). Denying is never affected.
delete-workspaceDelete a workspace
create-ownership-transferStart an ownership transfer
assign-admin-user-platform-role, remove-admin-user-platform-role, request-admin-user-deletionPlatform administration

Account self-deletion keeps its own accountDeletionFreshAuthRequired error and confirmation token; it uses the same 15 minute window.

A personal access token is unaffected, so integrations see no change.

The OAuth login step for AI assistant connectors (POST /oauth2/budgetthing/login/accept) applies the same window differently. Instead of a 403, a stale session gets a redirectTo that points to a Kratos refresh login returning to the same login challenge, so the connection resumes after the sign-in.

Server errors​

A 500 is deliberately opaque. The underlying cause is logged on the server and never returned, the code is always INTERNAL_ERROR, and the errors array is left out entirely — there is no field-level diagnostic to report.

{
"title": "errors.api.unexpected.title",
"titleEnglish": "Something went wrong",
"status": 500,
"code": "INTERNAL_ERROR",
"detail": "errors.api.unexpected.detail",
"detailEnglish": "Something went wrong on our side. Try again in a moment.",
"details": {}
}

Quote the X-Request-Id from the response when you report one — it is how the call is found in the logs.

Responses that do not use the envelope​

Three failures are written by middleware, before an operation has been matched or run. They still use application/problem+json, but the body is shorter: there are no translation keys, no errors array and no details. Do not assume the full envelope when you parse a failure.

Missing or invalid credentials. Written by the authentication layer.

{
"status": 401,
"code": "unauthenticated",
"detail": "authentication required"
}

A token without the required scope, or an operation that is closed to tokens entirely.

{
"status": 403,
"code": "PERSONAL_ACCESS_TOKEN_SCOPE_DENIED",
"detail": "personal access token is not permitted to perform this operation"
}

An MCP-only token used outside the MCP endpoint.

{
"status": 403,
"code": "PERSONAL_ACCESS_TOKEN_MCP_ONLY",
"detail": "This token is restricted to the AI assistant (MCP) endpoint and can't be used on other API routes."
}

A workspace-restricted token reaching a different workspace.

{
"status": 403,
"code": "PERSONAL_ACCESS_TOKEN_WORKSPACE_DENIED",
"detail": "personal access token is not permitted to access this workspace"
}
Parse defensively

Read status and code first, and treat every other field as optional. That one rule covers the full envelope, the three short bodies above, and the rate-limit responses in Limits.

Retrying​

429 and 503 are worth retrying — see Limits for the signals that tell you when. A 500 may be worth one retry with backoff. Everything in the 4xx range other than 429 describes a problem with the request itself, and repeating it unchanged produces the same answer.

Requests that create something should carry an idempotency key before you retry them, so that a response you never saw does not become a duplicate.