Rush API

Error codes

Every error is JSON with a stable code to branch on and a message to show. These are the 90 codes the operations document.

View .md

The error body

Every non-2xx body. Two envelopes are live: most routes send error (a sentence) with an optional code or error_code; the org-wide session search sends code and message. Some refusals add fields (candidates, fields, plan usage). Branch on code / error_code.

errorstringoptional

A sentence for a person.

codestringoptional

Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, TOKEN_LIMIT_REACHED.

error_codestringoptional

The machine code on routes that name it this way.

messagestringoptional
requestIdstringoptional

Every code

CodeStatusSent by
ACCOUNT_UNSUPPORTED422Start a session, Send a follow-up
AGENT_IN_USE409Delete a saved agent.
ATTACHMENT_EXPIRED410Start a session
ATTACHMENT_IN_USE409Start a session, Send a follow-up
ATTACHMENT_NOT_FOUND404Start a session
ATTACHMENT_NOT_UPLOADED409Start a session, Send a follow-up
CANCELLATION_UNCONFIRMED503Cancel a session
CATALOG_REFRESH_REQUIRED409, 422Start a session, Save an agent.
COMPUTE_LIMIT_REACHED402Start a session
CONNECTION_AMBIGUOUS422Start a session, Save an agent.
CONNECTION_NOT_READY422Start a session, Save an agent.
CONNECTION_UNAVAILABLE422Send a follow-up
CONTENT_TOO_LARGE400Send a follow-up
CONTINUATION_UNSUPPORTED409Send a follow-up
CREDITS_EXHAUSTED402Start a session
FIELD_REMOVED400Start a session, Send a follow-up, Save an agent.
FORBIDDEN403Send a follow-up, List saved agents you can use, newest first., Save an agent., Edit a saved agent., Delete a saved agent., Save a secret. The value is sealed and never returned., Create an automation., Edit an automation., Delete an automation and its triggers., Add a trigger to an automation., Edit a trigger., Remove a trigger., Rotate a webhook trigger's secret.
FREE_TRIAL_USED402Start a session
GMAIL_NOT_CONNECTED422Create an automation., Edit an automation., Add a trigger to an automation.
HANDLE_TAKEN409Save an agent.
IDEMPOTENCY_CONFLICT409Start a session
IF_MATCH_REQUIRED428Edit a saved agent., Delete a saved agent.
IMMUTABLE_FIELD422Edit a saved agent.
INPUT_FETCH_FAILED422Start a session, Send a follow-up
INSTALLATION_NOT_LINKED403Start a session
INVALID_BODY400, 422Start a session, Send a follow-up, Save an agent., Get a saved agent you can use., List the accounts and MCP servers connected to one agent made from a template., Start a sign-in that connects an account or MCP server to one agent., Save a secret. The value is sealed and never returned., Replace a secret's value or note, or a sign-in's site., Get an upload URL for each file of a session's input.
INVALID_CATALOG422Save an agent.
INVALID_DESCRIPTION422Save an agent.
INVALID_EFFORT422Save an agent.
INVALID_FILTER400Read a session's transcript
INVALID_HANDLE422Save an agent.
INVALID_HARNESS422Save an agent.
INVALID_INSTRUCTIONS422Save an agent.
INVALID_MODEL422Save an agent.
INVALID_NAME422Save an agent.
INVALID_REVISION400Get a saved agent you can use.
INVALID_SCHEDULE422Create an automation., Edit an automation., Add a trigger to an automation., Edit a trigger.
LINEAR_NOT_CONNECTED422Create an automation., Edit an automation., Add a trigger to an automation.
MCP_SERVER_URL_INVALID422Start a session
MODEL_ACCOUNT_MISSING402Start a session
MODEL_UNSUPPORTED422Start a session, Create an automation., Edit an automation.
NOT_FOUND404Read a session's transcript, Get a saved agent you can use., Edit a saved agent., Delete a saved agent., List the accounts and MCP servers connected to one agent made from a template., Start a sign-in that connects an account or MCP server to one agent., Read one of an agent's connections, or the sign-in that makes it., Disconnect one of an agent's connections, or cancel its sign-in., Remove one of your computers and disconnect it., Read one Community agent, with no credential, Read one Community Project, with no credential
PAYMENT_METHOD_REQUIRED402Start a session
PERSISTENCE_MODE_CONFLICT409Send a follow-up, Create an automation., Edit an automation.
PLAN_REQUIRED402Start a session
PROJECT_HAS_NO_REPOSITORY422Edit an automation.
PROJECT_PAUSED409Send a follow-up
RATE_LIMITED429List the org's Projects, Create a Project in this org, or import a template, Get a Project by handle or id, List sessions, Start a session, Get one session, Cancel a session, Follow a session live, Read a session's transcript, Send a follow-up, Download one artifact, Download one file the session was given, Start a session (console, by Project), List the files the session's pull request changed, List the files a session produced, List the turns of a session, Get one turn, List the org's API keys, Create an API key, Set, change or remove the key's webhook, Revoke an API key, Rotate an API key's secret, List the harnesses, models and connectors the org can run, Get the caller's plan usage for the current period and the plan catalog., List saved agents you can use, newest first., Save an agent., Get a saved agent you can use., Edit a saved agent., Delete a saved agent., List the accounts and MCP servers connected to one agent made from a template., Start a sign-in that connects an account or MCP server to one agent., Read one of an agent's connections, or the sign-in that makes it., Disconnect one of an agent's connections, or cancel its sign-in., List the org's Project secrets, without values., Save a secret. The value is sealed and never returned., Replace a secret's value or note, or a sign-in's site., Delete a secret. A session that names it afterwards fails instead of starting without it., List the GitHub App installations the caller can use and their repositories., List automations across the org's Projects., List the Project's automations., Create an automation., Get one automation., Edit an automation., Delete an automation and its triggers., Add a trigger to an automation., Edit a trigger., Remove a trigger., Rotate a webhook trigger's secret., Remove one of your computers and disconnect it., List your linked computers., Read one Community agent, with no credential, List Community agents, with no credential, Read one Community Project, with no credential, List Community Projects, with no credential
REPO_NOT_IN_INSTALLATION403Start a session
REQUEST_TOO_LARGE413Start a session, Send a follow-up
RESOURCE_NOT_ACCESSIBLE422Start a session
RESOURCE_UNSUPPORTED422Start a session
RUN_STATE_CONFLICT409Cancel a session
RUNTIME_UNPINNABLE422Start a session
SECRET_CHANGED409Replace a secret's value or note, or a sign-in's site.
SECRET_DESCRIPTION_INVALID422Save a secret. The value is sealed and never returned., Replace a secret's value or note, or a sign-in's site.
SECRET_FIELD_IMMUTABLE422Save a secret. The value is sealed and never returned., Replace a secret's value or note, or a sign-in's site.
SECRET_KIND_INVALID422Save a secret. The value is sealed and never returned.
SECRET_NAME_INVALID422Save a secret. The value is sealed and never returned.
SECRET_NAME_TAKEN409Save a secret. The value is sealed and never returned.
SECRET_NOT_FOUND404Save a secret. The value is sealed and never returned., Replace a secret's value or note, or a sign-in's site., Delete a secret. A session that names it afterwards fails instead of starting without it.
SECRET_ONEPASSWORD_NOT_CONNECTED422Save a secret. The value is sealed and never returned.
SECRET_ONEPASSWORD_NOT_FOUND422Save a secret. The value is sealed and never returned.
SECRET_ONEPASSWORD_RATE_LIMITED422Save a secret. The value is sealed and never returned.
SECRET_ONEPASSWORD_TOKEN_REJECTED422Save a secret. The value is sealed and never returned.
SECRET_ONEPASSWORD_UNAVAILABLE422Save a secret. The value is sealed and never returned.
SECRET_PROJECT_NOT_IN_ORG422Save a secret. The value is sealed and never returned.
SECRET_PROJECT_REQUIRED422Save a secret. The value is sealed and never returned.
SECRET_SOURCE_INVALID422Save a secret. The value is sealed and never returned.
SECRET_TARGET_INVALID422Save a secret. The value is sealed and never returned.
SECRET_VALUE_INVALID422Save a secret. The value is sealed and never returned., Replace a secret's value or note, or a sign-in's site.
SESSION_NOT_CAPTURED404Read a session's transcript
SKILL_FETCH_FAILED422Start a session, Save an agent.
SKILL_INVALID422Start a session, Save an agent.
SKILL_TOOL_REQUIRED422Edit a saved agent.
SPEED_NOT_QUALIFIED422Start a session
SPEND_CAP_REACHED402Start a session
STALE_ETAG412Edit a saved agent., Delete a saved agent.
TASK_TERMINAL409Send a follow-up, Create an automation., Edit an automation.
TEMPLATE_AGENT_UNLISTED422Create a Project in this org, or import a template
TEMPLATE_FIELDS422Save an agent., Edit a saved agent.
TEMPLATE_IN_USE409Delete a saved agent.
TEMPLATE_NEEDS_CONNECTION422Create a Project in this org, or import a template
TOKEN_LIMIT_REACHED402Start a session
TOO_MANY_FILES400Get an upload URL for each file of a session's input.
UNKNOWN_FIELD400Start a session, Save an agent., Start a sign-in that connects an account or MCP server to one agent.
UNSUPPORTED_AGENT422Start a session
UNSUPPORTED_PROFILE422Start a session, Save an agent., Edit a saved agent.
VALIDATION_ERROR400Create an API key, Set, change or remove the key's webhook, List the harnesses, models and connectors the org can run, Remove a trigger., List Community agents, with no credential, List Community Projects, with no credential
WEEKLY_COMPUTE_LIMIT_REACHED402Start a session