STACK returns errors in one JSON envelope. Branch on the machine-readable code. Show the message to the operator when it helps them fix the request.
{
"error": {
"code": "PASSPORT_REVOKED",
"message": "Passport has been revoked",
"details": {}
}
}details is optional. Validation failures can use VALIDATION_ERROR, INVALID_JSON, EMPTY_BODY, or UNSUPPORTED_MEDIA_TYPE.
This list is made from the code that raises the errors, so it is complete for this release. A code that can answer with more than one status shows each.
ACCOUNTABILITY_REQUIRED required intent data is missingAGENT_IDENTITY_LOOKUP_INVALID The lookup names none or more than one of the key id, the site and the agent id, or one in a form none can have.CALENDAR_INPUT_INVALID A time, zone or repeat rule given for an event that cannot be read.CMEK_CONFIGURATION_INVALID the customer KMS configuration is invalidCONTROL_SOCKET_ADDRESS_REFUSED The address was refused (not https, an internal host) or its setup check failed.DELEGATION_ACCOUNTABILITY_VIOLATION delegation would use a looser modeDELEGATION_DEPTH_EXCEEDED Maximum delegation depth exceededDRIVE_FILE_EMPTY A file with no bytes. The drive takes a file of any type, but not an empty one.DRIVE_UPLOAD_ABORTED The sender left, or the connection broke, before the whole file arrived. Nothing was stored.INVALID_JSON the request body is not JSONINVALID_REQUEST the request is not valid; the message says what to changeINVALID_WEBHOOK_SIGNATURE the signature on an incoming webhook did not verifyKEY_CHALLENGE_INVALID The key registration challenge was unknown, used, expired or answered wrongly.LICENCE_NOT_REVOCABLE The key offered for revocation is not one this account can revoke: not signed by STACK, not issued to this account, expired, or carrying no id. One answer for all of them, so it says nothing about any other account's keys.MISSION_REQUIRED the action needs a Passport bound to one live MissionNETWORK_ADDRESS_REFUSED A subscription's address was refused: not https, or not a publicly reachable host.POSTAL_KEY_REFUSED The supplier key handed over is not one STACK accepts: a member key can spend the customer's supplier credits and a sandbox key receives nothing.RELEASE_EMAIL_REQUIRED a release needs the customer's address: none was given and not exactly one is invitedSCHEMA_VALIDATION_FAILED Package does not conform to declared schemaSCOPE_ESCALATION delegated scope is wider than parent scopeTENANT_TIER_NOT_ALLOWED a partner-managed account cannot be given a planTOOL_RUN_REJECTED Monid refused the run request itself (bad input for the endpoint). Nothing was charged.UNBOUNDED_SEND_RULE A new or revised policy allows a send without naming who receives it. details.rules lists each offending rule, the intents involved and the recipient fields left unbound. See findUnboundSendRules.WAKE_WEBHOOK_ADDRESS_REFUSED The webhook address was refused: not https, or a host STACK will not call.WORKSPACE_PATH_IS_DIRECTORY That path is a folder, not a file. List what is in it with a command such as ls, and read one of the files in it.AGENT_JWT_REPLAYED Agent JWT already used - mint a fresh JWT for every request (one JWT = one request; re-sign on retries, never resend the same Authorization header)INSTALL_PROOF_INVALID A request signed by an install did not check out. One 401 shape, the reason named in details.reason.INSTALL_PROOF_REPLAYED An install proof was presented twice. Each proof is good for one request.INSTALL_PROOF_REQUIRED The call proves possession of an install key, and an API key or session alone cannot.INVALID_API_KEY Invalid API keyPASSPORT_EXPIRED Passport has expiredPASSPORT_INVALID A token presented as a Passport that is not one of this deployment's: unreadable, tampered, another audience or issuer. Not a revocation.PASSPORT_REVOKED Passport has been revokedUNAUTHORIZED authentication is missing or invalidAGENT_BUDGET_EXCEEDED This agent account's monthly budget is used up. The owner can raise it, or it resets at the start of next month.ALLOWANCE_EXHAUSTED a hard-capped monthly allowance was reachedCONTROLS_REQUIRED The customer has no controls, and this is a controls feature. 402 like the platform subscription: the fix is to switch controls on, not a different request. STACK still writes the record for every account; only reading it is refused.INSUFFICIENT_CREDITS The wallet is empty, so this paid action did not run. The owner tops up in the Console, at the Billing page.LICENCE_REQUIRED A feature this self-managed install has no licence for: no key, an expired one, or a key that does not cover it. 402 like the platform subscription: the fix is a licence, not a different request.PLATFORM_SUBSCRIPTION_REQUIRED Agent accounts and their paid features need an active or trialing platform subscription (a card subscription with a free trial).SPEND_FROZEN a paid action is refused until a top-up dispute or refund resolvesAGENT_NOT_ACTIVE The agent is retired or suspended, so it is given no Passport and takes no change. Says which.BILLING_ACCOUNT_INACTIVE The account a call is billed to is not active: a white-label tenant whose partner is suspended, deleted or no longer a partner. Nothing is charged to anyone and the tenant's own wallet is never used instead.BROWSER_URL_REFUSED The browser only opens public http and https addresses. Private, loopback and link-local addresses are refused.BUDGET_NEEDS_CONTROLS A per-agent budget is a controls feature. Without controls an account's limit is its owner's prepaid credit; an existing budget keeps enforcing but cannot be set or changed until controls are on again.CARD_NUMBER_REFUSED A card number cannot be typed into the browser. Start checkout and type the placeholder card it returns; the customer pays with their own card on their device.CARD_ORIGIN_MISMATCH The placeholder card was typed on a page that is not the site its checkout was started for (a look-alike, or any other origin). Nothing was typed and the card is still usable on the right site.CONTROL_DENIED The customer's decider said no. retry.ref names a pending approval the retry may cite in X-Control-Ref. A refusal by a hosted policy also names which rule refused (rule: the policy, its revision, the section and the rule id), never a value the call carried.CONTROL_LIMIT_EXCEEDED A limit of the customer's policy was reached while the action was being paid for: a spend limit counted at the reservation (window day, month or mission), or the most one action may cost (window action, with ceilingCents). Nothing was reserved or charged and the action is handed back.CONTROL_SOCKET_UNAVAILABLE The customer's control server gave no usable answer in time (no answer, a bad signature, an error, an open breaker). The action is refused, never charged, and handed back so the agent can retry once the server answers. 403 and not 503, so a provider-compatible client does not retry it blindly.FORBIDDEN the caller cannot perform the actionGOVERNANCE_APPROVAL_EXPIRED the approval named on the retry ran out of time; ask for a new oneGOVERNANCE_APPROVAL_PENDING the approval named on the retry is still waiting for the personGOVERNANCE_APPROVAL_REJECTED the approval named on the retry was declined; ask for a new oneGOVERNANCE_APPROVAL_REQUIRED a human step-up is requiredIDENTITY_REQUIREMENTS_NOT_MET service identity requirements were not metMEMORY_AGENT_STEERING_NOT_ALLOWED An agent tried to set the account's memory types or give a write its own extraction instructions, and the owner has not allowed that. Both steer the model that reads every later write, so they are the owner's unless the owner switches agents_may_steer_extraction on in the memory settings.MESSAGES_READ_ONLY The owner set this agent to read only (messages_read_only): it reads its messages and its teammates' but sends nothing from any account, its own included. Nothing was sent and nothing is charged.MISSION_PAUSED A cap of the Mission paused it: every action under it is refused until its owner raises the limit, lets it continue or closes it. Nothing was revoked, and the action did not run.OPENROUTER_ENDPOINT_REFUSED A call to OpenRouter's API that the gateway does not send on STACK's own key: an endpoint of the OpenRouter ACCOUNT (its keys, credits, files, batches, presets and the rest) or one the gateway does not know. STACK's key is one OpenRouter account shared by every agent account, so these are not an agent account's to use; on the customer's own OpenRouter key every endpoint passes. Refused before anything is counted, held or sent.OPERATOR_DELETED Account deletedOPERATOR_SUSPENDED the operator is suspendedPASSPORT_BLOCKED this agent cannot issue a new PassportPURCHASE_REFUSED the card checkout was refused; details.reason says whyRECIPIENT_OPTED_OUT The number asked not to be contacted: it is on the customer's do-not-contact list. Nothing was sent or placed.TELEGRAM_SEND_REFUSED An agent's Telegram send STACK refused before anything left: no bot, a chat that never wrote to the bot (a bot cannot message a chat first), a chat that blocked it, or a token Telegram no longer accepts. Nothing was sent and nothing is charged.TENANT_BILLED_BY_PARTNER a partner-managed account is billed by its partnerTIER_LIMIT_EXCEEDED a plan resource limit was reachedTOLL_FREE_VERIFICATION_REQUIRED This number cannot send texts yet: its toll-free verification is not approved. The account owner submits the business details (POST /v1/accounts/:id/phone/toll-free-verification) and confirms it when asked, and sending works once it is approved. Receiving texts works without it.TRUST_LEVEL_INSUFFICIENT a skill trust requirement was not metUNAUTHORIZED_SKILL_ACCESS the agent may not invoke this skillUS_CARRIER_REGISTRATION_REQUIRED This number cannot send texts yet: the account owner's business is not registered with US carriers (A2P 10DLC). The owner completes the texting registration, and sending works once it is approved. Receiving texts works without it.WEBSITE_LIMIT_EXCEEDED A website limit (the size of the whole site).WEBSITE_SUSPENDED The site is suspended or taken down, so nothing can be published to it.AGENT_IDENTITY_NOT_FOUND No agent answers to this lookup. The same answer, word for word, whether the agent never existed, is closed, or its owner turned the public answer off, and it never repeats what was asked: nobody can learn from it what exists.CHECKPOINT_NOT_AVAILABLE Checkpoints are not available for standard-mode passportsDRIVE_LINK_INVALID A share link that does not work: forged, expired, revoked, used up or for a file that is gone. One answer for all.DRIVE_UPLOAD_LINK_INVALID The one-time upload URL does not work: forged, expired, already used or another customer's. One answer for all of them.INVOCATION_NOT_FOUND the invocation was not foundMEMORY_ENTITY_TYPE_NOT_FOUND The account has no type of this name in force (it never had one, or it was retired).MEMORY_SOURCE_MESSAGE_NOT_FOUND from_message_id names no inbound message of this account's owner. A message that does not exist, one that belongs to another customer and one the agents sent are answered the same, word for word, so the answer says nothing about which ids exist. Nothing was stored or charged.NOT_FOUND The resource was not found for this caller.RENTAHUMAN_FLOW_NOT_OPEN (404, 409) The signup or top-up asked for is not open: unknown, someone else's, or already ended.SIGNING_KEY_UNAVAILABLE the signing key for this request is not availableSKILL_NOT_FOUND the skill was not found or is not activeWEBSITE_UPLOAD_LINK_INVALID The one-time upload URL for a site does not work: forged, expired, already used or another customer's. One answer for all of them.WORKSPACE_FILE_NOT_FOUND There is no such file in the workspace.DRIVE_UPLOAD_TIMED_OUT The upload sent no byte for too long, or ran for longer than an upload may. Nothing was stored.ACCOUNT_PIECE_NOT_READY an agent account piece is not ready; read the accountBROWSER_SESSION_NOT_ACTIVE The browser session has ended (it was ended, ran out of time or sat idle), so start a new one.CALENDAR_COUNTER_DECIDED The counter-proposal was already accepted or declined.CALENDAR_EVENT_CANCELLED The event was cancelled: it cannot be changed again.CALENDAR_NO_INBOX Guests are mailed from the account's inbox, and this account has none.CALENDAR_NOT_ORGANIZER The event is an invite from someone else: only its organizer changes or cancels it; the agent answers it.CALL_HELD_BY_STACK Speaking, pressing keys or changing the voice on a call STACK holds with its own model: only hanging up works there.CALL_NOT_LIVE A call tool or the live stream named a call that is not on the line: not answered yet, or ended.CALL_NOT_RINGING That call is not ringing any more. Read the call to see what happened to it.CONFLICT the request conflicts with current stateCONNECTION_AMBIGUOUS A call named a service that the account holds more than one connection to, and nothing said which. connections is the caller's own eligible set only (never another connection of the account), so a refusal reveals nothing the caller could not already use. Nothing was decrypted and nothing was sent.CONNECTION_NO_ACCESS_TOKEN A connection of a service that is called with an OAuth access token holds none: it was connected with fields that carry no token. Retrying can never help, so this is a client error with its own code and no retry hint; the connection has to be made again.CONTROLS_NOT_ENABLED Hosted controls are not on for this customer, so they cannot be chosen.DRIVE_LINKS_PAUSED STACK has paused the customer's share links after a download spike.DRIVE_READ_ONLY The storage charge could not be paid, so the drive is read-only until it is paid or the drive is back within the free bytes.DROPOFF_ALREADY_COLLECTED the drop-off was already consumedINSTALL_REVOKED The install, or the key it signs with, has been revoked.INVITE_NOT_RESPONDABLE The invite cannot be answered the way asked (it was cancelled, or has no start).MAKING_ORDER_STATE The order is not in a state that allows this (approve a placed order, cancel a shipped one).MAKING_QUOTE_EXPIRED This quote has expired. Ask for a new one.MEETING_ALREADY_LIVE The agent is already in this room.MEETING_EVENT_HAS_NO_ROOM The event has no meeting room of STACK's to join.MEETING_NOT_LIVE The meeting is over, or the agent is not in the room yet.MEETING_ROOM_EXPIRED The event has ended: its room has expired and nobody can join it.MEMORY_BUSY Memory writes one thing at a time for an account. add_triplet and summarize_saga answer at once, so one that could not get its turn in time says so and can be sent again. Nothing was written or charged.MEMORY_DISABLED The owner turned memory off, so nothing is written and nothing is recalled.MEMORY_EPISODE_EXISTS The episode id this account chose is already used by an episode of this account: an id is chosen once. (The real id is derived from the account and the chosen one, so this is never an answer about another account.)MEMORY_LIMIT_REACHED The account's memory is at one of its limits.MEMORY_WRITE_NOT_UNDOABLE A write that is still waiting or being read cannot be undone yet: it has changed nothing, or is changing the graph now. Nothing was undone.MISSION_NOT_PAUSED The owner asked for something only a Mission a cap paused can take (a review), and this one is not paused.NETWORK_LIMIT_REACHED A count the network bounds (installs, live keys, subscriptions) is full.PAYMENT_CONNECTION_REQUIRED The agent has no active Stripe connection to take card payments on.POSTAL_ADDRESS_NOT_ACTIVE The customer's street address is not live: it waits on the customer's identity steps at the supplier, or it is suspended.RELEASE_NOT_AVAILABLE the account cannot be released now, or a release the customer asked for cannot be withdrawnRENTAHUMAN_ALREADY_CONNECTED The customer already has a RentAHuman connection; there is one per customer.RENTAHUMAN_NOT_CONNECTED A top-up needs the customer's RentAHuman connection and there is none.TENANT_LIMIT_REACHED the partner reached its deal's account limitWEBSITE_HOSTNAME_UNAVAILABLE The address is taken, is not a name STACK can serve, or its ownership is not proven yet.WORKSPACE_LIMIT the account has as many workspaces as it may; delete oneWORKSPACE_NOT_ACTIVE The workspace is in a state that cannot take this call (a start or a stop is in progress, or it has ended).DROPOFF_EXPIRED the drop-off expiredINVOCATION_EXPIRED the skill invocation expiredSANDBOX_REPLACED_BY_WORKSPACE The account's old sandbox is gone: its routes answer this and point at the workspace.SEATS_RETIRED 410: seats are no longer sold. Every account may have any number of team members. Seats bought on an old plan were removed from its subscription at the release, prorated (apps/api/src/hosted/scripts/remove-seat-items.ts).TIER_SUBSCRIPTIONS_RETIRED 410: the Developer, Pro and Business subscriptions are no longer sold. There is one price list: the platform subscription (and the optional controls one). Existing subscriptions keep working until their period ends.DRIVE_INLINE_READ_TOO_LARGE The file is bigger than an inline read hands back.EMAIL_ATTACHMENTS_TOO_LARGE The files attached to an email come to more than OpenMail takes in one message.WEBSITE_ARCHIVE_TOO_LARGE The archive is larger than the upload URL was made for.ACCOUNT_CALL_FAILED (422, 502) the call could not be placed; a 502 means it may have been placed, so read the call list before trying againACCOUNT_SEND_FAILED (422, 502) the provider refused the email or text (the message says why); a 502 means it may not have been sentBROWSER_ACTION_FAILED the click or the typing did not complete on the pageCURRENCY_NOT_SUPPORTED the currency cannot be converted for this purchaseDESTINATION_NOT_AVAILABLE texts and calls to this number are not available: Twilio has no price for it (details.reason no_price) or does not allow it from the account's number (refused_by_twilio)EMAIL_MESSAGE_NOT_ANSWERABLE A reply or forward names a message that cannot be answered: not an email, or one that was withheld.IMAGE_NOT_SUPPORTED An image asked of a provider that has no image generation endpoint (Anthropic), or of a caller whose model calls cannot make one. Refused before anything is sent or counted; the message says where the image can be made.MEMORY_FIELD_FILTER_INVALID A search asked to filter by the value of a field that cannot be filtered as asked: the type is not one of the account's own, it has no such field, the types name the field with different kinds, or the value does not fit the field's kind. reason says which, in words. Nothing was searched, so the answer is never an empty list that hides a mistake.MEMORY_SECRET_REFUSED Memory never stores a secret: a key, a token, a password, a private key or a card number. Text that looks like one is refused before it is scanned, metered or recorded, so nothing is stored or charged. kind is the kind of credential seen and field the field of the request it was in; the value is never returned.MEMORY_WRITE_FAILED (422, 503) A write that answers at once (add_triplet, summarize_saga) did not get into the graph. reason is the plain reason of the failure code (memoryFailureReason), the same words a failed add_memory shows in get_episodes. One that can pass is the deployment's (stackSide, so the action is handed back) and can be sent again.MEMORY_WRITE_SPEND_LIMIT One write has used up the most model spend a write may take over all its attempts (MEMORY_WRITE_MAX_SPEND_CENTS). The gateway refuses the call before anything is held; the engine reports it as the write's failure write_spend_limit, which is not retried.MESSAGE_SENDER_NOT_VERIFIED A message cannot be answered under a rule that sends only to who wrote it, because who wrote it could not be verified (a received email whose receiving server did not vouch for its sender). Nothing is pinned and nothing is sent.MODEL_COST_CAP A cost cap (X-Max-Cost-Cents) below a call's worst case, for a deployment that refuses such a call. STACK's own key lowers the hold to the cap instead, and a call on the customer's own provider key ignores the header: the provider bills that call and STACK holds nothing for it. Refused before anything is held or sent.PAYMENT_KEY_REFUSED The key the customer gave for card payments is a full secret key, or reaches beyond payments.STRIPE_REQUEST_FAILED (422, 502) Stripe refused or failed a call made with the customer's key. Nothing was created.TOOL_PRICE_REFUSED A paid tool run refused before anything is held: max_results out of range, an input too deep. Nothing was held or charged.WEBSITE_ARCHIVE_INVALID The archive sent to an upload URL is not a zip this service can publish. Names what is wrong, never a file's content.WEBSITE_PUBLISH_REJECTED The publish scan refused the bundle. Names what and where, never page text.WORKSPACE_FILE_MODE_FAILED The file was written, but the permission bits asked for could not be set on it.DRIVE_TOO_MANY_UPLOADS The customer already has as many uploads running as it may; this one was not started. Retry when one has finished.MEMORY_DELETE_RATE_LIMITED The account has made as many deletes this hour as it may (MEMORY_DELETES_PER_HOUR): a delete runs model calls to rebuild summaries, so it is held to a rate. Nothing was deleted, charged or recorded; the same call can be sent after the wait.RATE_LIMITED the caller is calling too fast; wait and retrySHARED_MAIL_DAILY_LIMIT The customer's agents reached their recipients for the UTC day on the shared agent mail domain.WEBSITE_UPLOADS_BUSY This machine is reading another site archive, or the customer already has one running; this one was not started. Retry in a few seconds.WEBHOOK_HANDLER_FAILED Webhook handler failedNOT_CONFIGURED A feature this deployment has not been set up for was asked for.RENTAHUMAN_PAYMENT_UNCONFIRMED RentAHuman did not confirm a payment the wallet may already have made. STACK never sends it again.ATTACHMENTS_BUSY The files of mail are waiting for memory: too many are being read at once on this machine. Nothing ran; try again.BRAIN_PROVIDER_REFUSED AWS refused to make the customer's knowledge base (for example its own limit on knowledge bases in an account was reached). AWS's own words are passed back as they are; nothing was added or charged.BRAIN_UNAVAILABLE The brain is not set up on this deployment (no AWS account is configured for it) or AWS could not be reached. Nothing was added, removed or charged: the deployment could not serve the call (stackSide).BROWSER_SESSION_LENGTH_REFUSED The browser plan does not allow a session as long as the one asked for (the plan caps one session). Nothing the customer did, nothing was charged, and waiting does not cure it: a setting of STACK's own.BROWSER_TIME_USED_UP The browser provider refuses sessions because the plan's browser time for the month is spent. Its own code, so a client that retries a capacity refusal does not keep trying until the month turns.CATALOGUE_UNAVAILABLE The catalogue has not been built yet, or the store that holds it cannot be read. A retriable 503 that says nothing about the store.CMEK_REVOKED Customer-managed encryption key is unreachable. STACK no longer has KMS access — please restore the IAM grant on the configured CMK in your AWS console.CONTROL_UNAVAILABLE STACK's own hosted controls could not decide. Nothing ran and nothing was charged.MAKING_UNAVAILABLE Making cannot serve the call because of STACK's side (a supplier key, a supplier outage). Nothing was ordered or charged.MEMORY_UNAVAILABLE The memory engine is not configured on this deployment, cannot be reached, or the text could not be checked. In every case nothing was written or charged: the deployment could not serve the call, so a metered action is handed back (stackSide).POST_UNAVAILABLE STACK's side of post cannot serve the call: the supplier or the letter provider is not configured on this deployment, or has no usable answer. Not the customer's fault, and nothing is charged.PROVIDER_CAPACITY_UNAVAILABLE STACK paused its own spend at a provider, or Twilio declined a text or call for want of funds on STACK's account; nothing was chargedSERVICE_UNAVAILABLE A backing service STACK depends on (Redis, the database) is unreachable. The call fails closed but is retriable: the answer is 503 with a Retry-After header and details.retry_after_seconds, so a client can tell this apart from a refused credential.TOOLS_UNAVAILABLE STACK's side of paid tools cannot serve the call (its Monid key or wallet). Not the customer's fault, and nothing is charged.A policy refusal is 403 CONTROL_DENIED with the reason in details.rule.code. For a rule whose recipients are set per job, recipients_not_pinned means the Mission does not name who it may send to (or, for the account's own recipients set to "per_mission", that the send names no stored message in reply_to_message), and recipient_not_allowed means the send goes to someone the Mission (or the stored message) did not name. Writing a send rule that does not name its recipients is 400 UNBOUNDED_SEND_RULE; set the rule's recipients to "per_mission" so each Mission names them.
GOVERNANCE_APPROVAL_REQUIRED means the action did not run. Show the returned approval URL to a human. After approval, repeat the same request with X-Governance-Approval set to the approval ID. The approval is single-use, expires after 24 hours, and is bound to the request payload.
SCHEMA_VALIDATION_FAILED includes validation errors in details.errors. Correct the data to match the published skill schema or the drop-off schema.
Unexpected server failures return INTERNAL_ERROR with HTTP 500. The response does not include internal exception details.