Errors

Every Appstrate API error is an RFC 9457 problem document with a stable machine-readable code and a request id.

Errors are returned as application/problem+json per RFC 9457, with a few Stripe-style extension members. Branch on the HTTP status and on code. Never branch on title or detail, which are written for humans and can change.

Format

HTTP/1.1 400 Bad Request
Content-Type: application/problem+json
Request-Id: req_6f1c9a52-7b0e-4b7d-9c2e-0d3a8a1f5e44
{
  "type": "https://docs.appstrate.dev/errors/validation-failed",
  "title": "Validation Failed",
  "status": 400,
  "detail": "name: Too small: expected string to have >=1 characters (+1 more)",
  "instance": "urn:appstrate:request:req_6f1c9a52-7b0e-4b7d-9c2e-0d3a8a1f5e44",
  "code": "validation_failed",
  "request_id": "req_6f1c9a52-7b0e-4b7d-9c2e-0d3a8a1f5e44",
  "errors": [
    {
      "field": "name",
      "code": "out_of_range",
      "message": "Too small: expected string to have >=1 characters"
    },
    {
      "field": "scopes",
      "code": "invalid_type",
      "message": "Invalid input: expected array, received string"
    }
  ]
}
FieldAlwaysDescription
typeYesAn identifier URI for the error class, built from code. See Type URIs
titleYesShort human-readable summary
statusYesThe HTTP status, repeated in the body
detailYesHuman-readable explanation of this occurrence
instanceYesurn:appstrate:request: followed by the request id
codeYesStable machine-readable code in snake_case
request_idYesThe request id, also sent in the Request-Id response header
paramNoThe single request parameter at fault, such as a header name or a query field
retry_afterNoSeconds to wait before retrying. Mirrored in the Retry-After header
errorsNoField-level errors, one entry per offending field, on validation_failed and on some readiness checks

Some errors carry additional members the client is expected to act on. For example, a run launch blocked by a missing connection returns the connections to choose from or to reconnect (candidate_connections, required_scopes, and similar) so a UI can resolve it without a second round trip. These members are documented on the operation that emits them.

Property names in problem documents are snake_case, like the rest of the wire format. A few identifiers keep their camelCase spelling (id, userId, createdAt, and similar); see the OpenAPI schemas.

Request ids

Every response, success or error, carries a Request-Id header of the form req_<uuid>. Quote it in support requests and log it on your side: the platform's logs and audit records carry the same id. If you send a valid W3C traceparent header, it is echoed back and the trace id is attached to the server logs for that request.

Validation errors

A request body that fails validation returns 400 with code: "validation_failed" and one errors[] entry per offending field, all in the same response. Bodies are strict: an unknown field is an error, not silently dropped, and a malformed JSON body is a 400 rather than a 500.

Field codeMeaning
requiredA required field is missing
invalid_typeWrong type
invalid_formatWrong format: not an email, not a URL, not an ISO date
out_of_rangeToo short, too long, too small, or too large
unknown_fieldThe body contains a field the schema does not accept
invalid_valueNot one of the allowed values, or a custom rule failed
invalid_union, invalid_key, invalid_elementA nested union, map key, or array element failed
invalid_manifestA field of a package manifest is invalid
invalid_requestAny other validation failure

A missing field is required whatever its type, enum and union fields included. Three cases keep the code of the check that failed: a missing discriminator of a discriminated union (invalid_union), a field checked by a rule on the whole object (invalid_value), and a missing numeric field the schema coerces, such as size on POST /api/uploads (invalid_type).

Some operations put a field code of their own in errors[], such as invalid_input (a schedule's input), file_uri_in_prompt, no_tools_selected, scope_not_in_catalog and unrenderable_authorized_uri. Treat a field code you do not recognise like invalid_request.

field is a path: scopes, metadata.plan, or items[0].name for array elements.

A single bad query parameter or header is reported with code: "invalid_request" and a param instead of an errors[] array.

Type URIs

type is https://docs.appstrate.dev/errors/ followed by code with every underscore replaced by a hyphen (validation_failed becomes .../errors/validation-failed). It identifies the error class and is not a link to rely on. Each row below has the anchor code- plus the code in lower case with hyphens (#code-validation-failed, #code-invalid-url for INVALID_URL): the substitution does not lower-case, so lower-case the code before you look it up.

Error code catalog

These are the codes the platform HTTP API returns. The afps CLI and the embeddable runtime raise codes of their own, which never reach an API caller: see @appstrate/afps-runtime.

Four codes can come back from almost any endpoint: unauthorized, forbidden, internal_error and rate_limited. validation_failed, invalid_request and not_found cover most of the rest. Everything else is specific to a domain.

This list is maintained by hand and is not closed. It is checked against the code, but a release can add a code before this page lists it, optional modules (the billing module, for example) contribute codes of their own, and a self-hosted instance can load modules this page knows nothing about. Branch on status first and on code second, and treat a code you do not recognise as its status class rather than failing hard. Each operation in the OpenAPI document lists the responses it can return.

Codes marked billing module appear only when the optional billing module (Stripe billing, credit quotas, usage metering) is loaded.

CodeStatusMeaning
agent_in_use409A pending or running run, in any space of the organization, blocks deleting the agent or one of its versions
agent_not_active_in_space404The agent is placed in the space but switched off there. Activate it with POST /api/spaces/{id}/packages, or use another space
agent_not_found404No agent with that package id is reachable in this space
authentication_required401Accepting an invitation needs a signed-in user
authorization_server_iss_unsupported403A connect to a remote MCP server whose authorization server does not advertise RFC 9207 issuer identification, for an integration that is not a system one
authorization_server_pkce_unsupported403A connect to a remote MCP server whose authorization server does not list PKCE S256 in its metadata
authorization_server_unreachable503The authorization server of a remote MCP integration did not answer. Retry
auto_client_exists_at_org409Promoting a space's auto-provisioned OAuth client to the organization is refused: the organization already holds the auto-provisioned client of that auth. Reconnect the space's connections to move them onto it, then delete the space client
bad_gateway502An upstream dependency of the platform failed or returned an unusable response
blocked_target403Credential or model proxy: the upstream, or a redirect hop, resolves to a blocked (private or reserved) address. Direct MCP exchange with an unauthenticated integration's server: the same, or plain http:// (URL or redirect hop) to a host outside the operator's allowlist (EGRESS_ALLOW_INTERNAL_HOSTS). A Proxy-Status header says the proxy refused, not the upstream
blocked_url400A URL you submitted (a webhook endpoint, a proxy URL) resolves to a private or reserved network address
bootstrap_org_failed500First-run bootstrap created the account but not its organization. The instance is in a partial state
bootstrap_owner_email_mismatch403The instance names its owner in AUTH_BOOTSTRAP_OWNER_EMAIL. Claim it with that address
bootstrap_redeem_in_progress409Another bootstrap redemption is already running on this instance
bootstrap_signup_failed500Signup failed while redeeming the bootstrap token
bootstrap_signup_rejected400 / 422The auth layer rejected the bootstrap signup. 422 when the password policy refused the password
bootstrap_token_invalid401The bootstrap token does not match the instance's
bootstrap_token_unavailable410No bootstrap token is redeemable: none is configured, or it was already redeemed
bootstrap_user_exists409An account already exists for that email; the bootstrap token only creates a new one
bootstrap_user_lookup_failed500The bootstrap signup appeared to succeed but the user could not be found
bundle_conflict409An imported bundle contains a package owned by another organization, or one deleted during the import
bundle_integrity_mismatch500A stored package artifact no longer matches the integrity hash recorded when it was published. Republish the package. The runtime reports it as INTEGRITY_MISMATCH
bundle_invalid422A stored bundle cannot be assembled into a runnable package. detail names the runtime code
bundle_signature_invalid422A stored bundle failed the AFPS signature policy (AFPS_SIGNATURE_POLICY). Republish it signed by a trusted key
call_permission_required403Credential proxy: no X-Run-Id, an enforced organization default governs the integration in this space, and the caller holds credential-proxy:call-own without credential-proxy:call
chat_capacity429The chat engine is at its session cap. Retry after retry_after seconds
checksum_mismatch400The SHA-256 you declared does not match the bytes the server received
conflict409The package's files were modified concurrently. Reload and retry
connect_run_no_refresh409Credential refresh endpoint used by the sidecar: the caller is an ephemeral connect run, which holds no stored credential because its login tool mints the session in-process
connect_start_failed502Hosted connect form: the OAuth flow could not be started. The page session ends (connect_session_ended: true), so request a new connection link
connect_unavailable503This connection method is not available on this deployment
connection_additions_blocked409A member pin is refused because an admin pin closed to additions, or an enforced organization default, already imposes the integration's connections for this agent, so the pin would bind nothing. Ask an administrator to change that set
connection_additions_conflict409An admin pin cannot let members add connections to an integration whose default set the space enforces, since an enforced default is always closed. Stop enforcing the default first
connection_blocked_by_admin403An administrator disabled personal connections to this integration. Use the shared connection
connection_label_taken409Another connection of this integration already has that label
connection_not_in_org_default400The connection named in X-Connection-Id is outside the organization default enforced for that integration
connection_not_in_run400The connection named is not bound to that integration by this run
connection_not_ready400 / 403 / 404Hosted connect form, oauth2 auth: the flow was refused for an operator reason, answered with a generic detail and the status of the refusal. An administrator must finish setting the integration up
connection_owner_without_access409The connection's owner no longer has access to the space, so it cannot be shared there
connection_pinned409The connection is pinned to agents by an admin, or named by an organization default. Remove it from there first
connection_provider_mismatch400A connection's provider does not fit the model configuration named by config_id (a configuration holds one provider family)
connection_scope_narrowing409A connection that serves the whole organization would be reconnected with an OAuth client that belongs to one space only. Ask an administrator to register an organization OAuth client, or create a new connection in the space
content_entry_immovable400Editing package files: a required content file cannot be removed, renamed or emptied
credential_exfiltration_refused403Credential proxy: the call carries a credential but no authorized_uris entry binds the target's host: the list leaves the host to the caller, or a host wildcard is not under a registrable domain of its own, or the target's registrable domain lies outside the wildcard's literal part. The message names the host to list
credential_not_found404Credential proxy: no usable credential was found for the integration, or a connection_id was passed for an integration that declares no authentication
credential_proxy_closed403 / Tool resultCredential proxy, outside a run: the space's admin turned off direct connection access (credential_proxy_open: false), so /api/credential-proxy/* (the tools of an unauthenticated integration included) and the authenticated POST /api/integrations/{packageId}/discover refuse every role, owners included. Over MCP, a tool result naming that space. Runs are unaffected
credential_unusable502Credential proxy: the connection's credential is unusable once substituted or injected. Reconnect it
dashboard_session_required403Writing a tool policy (approving, withdrawing an approval, blocking or unblocking a tool) and listing or declining the pending invitations of an account (GET /api/me/invitations, POST /api/me/invitations/{token}/decline) need a person signed in to the dashboard. API keys, CLI, MCP and OIDC tokens, the chat and MCP invoke_operation are refused
default_space_not_deletable409The default space cannot be deleted
delete_failed400The organization could not be deleted, for example while runs are in progress. detail names the cause
dependency_unresolved422A declared dependency does not resolve to a usable published version. Publish it, fix the pin, or pass dependency_overrides
DOWNLOAD_FAILED400GitHub import: a file of the repository could not be downloaded
draft_not_writable403Running a draft requires write authority on it. Run the latest published version instead
draft_overwrite409The import would overwrite unpublished draft changes
draft_with_spec400stage: "draft" cannot be combined with a version spec: drafts have no published id
draft_with_version400?source=draft cannot be combined with ?version: drafts have no published id
duplicate_file_name400Two input files of a run resolve to the same workspace file name
egress_blocked400Field code on variables.<name> under validation_failed: a URL rendered from the connection variables points somewhere the platform's egress controls refuse
email_mismatch403The invitation was issued to another email address than the signed-in user's
email_not_verified403Declining an invitation from the dashboard needs the account's email address verified: without the link, verification proves the mailbox
EMPTY_PATH400GitHub import: no files were found at that path
empty_prompt400The agent's prompt is empty, so it cannot run
encryption_key_unavailable503A stored credential the request needs is encrypted under a key id the instance does not hold. An operator configuration error: nothing is flagged for reconnection, and the request succeeds once the key is restored
end_user_connection_not_shareable409An end-user's connection cannot be shared with the space (shared_with_org: true)
external_id_taken409Another end-user in this space already uses that externalId
file_count_exceeded413A run would reference or publish more files than RUN_MAX_FILES allows
file_in_use409The file is referenced by one or more runs and cannot be deleted
file_too_large, FILE_TOO_LARGE400 / 413A file is over its size limit. 413 when editing package files; 400 from a package ZIP import, and in upper case from a GitHub import
file_unavailable409One or more input files were deleted before the run could be created
file_uri_in_prompt400Field code on prompt under validation_failed: the prompt names appfile:// files the caller cannot read, so they cannot be mounted into the run. Pass only files you can access, in context_files or in a declared file input field
forbidden403The credential is valid but lacks the permission, role or ownership the operation needs
GITHUB_ERROR400GitHub import: GitHub answered with an error
header_not_allowed400A header was sent under an authentication method that cannot honor it (Appstrate-User outside API-key auth)
home_move_into_personal_space409A package cannot be re-homed into a personal space. Fork it instead
idempotency_conflict422The Idempotency-Key was already used with a different method, URL or body
idempotency_in_progress409A request with the same Idempotency-Key is still being processed. Retry shortly
idempotency_not_supported400Idempotency-Key was sent with an unsafe method to an operation that does not honor it. It is refused, not ignored
identity_mismatch409The reconnected account differs from the one the connection is linked to
in_use409Other packages still depend on the package, so it cannot be deleted
injected_draft_changed409Chat: the skill draft changed since the conversation turn injected it
inline_run_not_allowed_in_space403Composing an inline run needs agents:write and agents:run in the space, and the caller's role there does not grant both (for example a member under personal_space_role: operator in their own personal space). The problem carries active_in_spaces, the caller's other spaces where it does
integration_auth_undeclared409The integration version the run pins does not declare the auth its connection was created against
integration_connection_needs_reconnection410Credential endpoints used by the sidecar: the integration connection's credential is dead, or its stored credentials are unreadable, and the connection was flagged as needing reconnection. Reconnect it and relaunch the run
integration_not_connected409Integration server sync: no usable credential was found, so there is no connection to synchronize through
integration_not_remote422Integration server sync and POST /api/credential-proxy/tools/call: the integration is not backed by a remote MCP server
integrity_mismatch409The version already exists with different content. Bump the version, or force-replace. Unrelated to bundle_integrity_mismatch
internal_error500Unexpected server failure. The body never leaks internals
invalid_api_version400The Appstrate-Version header is not a YYYY-MM-DD date
invalid_argumentTool resultMCP: an argument has an invalid value, or an api_call request cannot be sent as written. arguments names the faulty ones. Fix the call and retry
invalid_bundle400Editing package files: the content is not valid UTF-8 text, or the files fail package validation
invalid_config400The integration manifest's identity_claims holds a path that is not valid JSONPath
invalid_content400Package ZIP import: a companion file is invalid, such as a SKILL.md without a frontmatter name
invalid_cron_expression400The schedule's cron expression is invalid
invalid_draft_manifest400The draft manifest is invalid or lacks a scoped name and version
invalid_end_user403The Appstrate-User end-user does not exist, or belongs to another space
invalid_end_user_id400The Appstrate-User header is not an eu_ end-user id
invalid_idempotency_key400The Idempotency-Key header exceeds the maximum length
invalid_inline_manifest400The manifest sent with an inline run is not a valid AFPS agent manifest
invalid_input400The run input does not satisfy the agent's input schema
invalid_manifest400Package ZIP import: manifest.json is not valid JSON or fails AFPS validation. Also a field code under validation_failed
invalid_path400Editing package files: a path is not a usable file path
invalid_request400Malformed request that does not fit field validation. param names the parameter at fault when there is one
invalid_share_target400Sharing a connection with a space: the target is not a space of the connection's organization, is not a team space, or is outside the one space the connection is confined to
invalid_signature401Run event ingestion: webhook-signature does not match the expected value
invalid_source400?source must be draft or published
invalid_stored_manifest500The catalog holds a malformed manifest for that package version
invalid_timestamp401Run event ingestion: webhook-timestamp is not a valid Unix timestamp
invalid_timezone400The schedule's timezone is not a valid time zone
INVALID_URL400GitHub import: the URL is not a GitHub URL this endpoint accepts
invalid_variable400Field code on variables.<name> under validation_failed: the value does not satisfy the variable's schema
invalid_view_as400The X-View-As value cannot be parsed, or was sent as a header to a Server-Sent-Events route, which takes the view_as query parameter
invitation_accepted410The invitation was already accepted
invitation_already_pending409A pending invitation already exists for this email. Edit it instead
invitation_cancelled410The invitation was cancelled
invitation_declined410The invitee declined the invitation
invitation_expired410The invitation has expired
invitation_failed500The invitation could not be created or sent
invitation_not_found404No invitation matches that token
last_owner409An organization must keep at least one owner
locked_input_field400The input field is locked on this agent and cannot be set at launch
locked_required_field_empty400A required input field cannot be locked without a value
login_input_unencodable400A submitted login value cannot be carried where the integration's login request places it, for example a line break in a header value. param names the field
login_rejected400The service refused the submitted credentials, or an oauth2 token request refused the submitted grant. login_refusal says which (grant or integration, the latter with integration_diagnostic); check the credentials and try again
login_upstream_unavailable502The service a connection logs in to is unreachable, throttling or failing. Try again later; retry_after is set when the service gave one
login_url_refused400Submitted values put the login URL's host somewhere the auth's authorized_uris refuse. errors[] names each field
message_replayed409Run event ingestion: that webhook-id was already used for this run
method_not_allowed405Only from the MCP endpoint, on a method other than POST. An Allow header lists the permitted methods
missing_argumentTool resultMCP: a required argument is absent, for example space_id, when an organization-wide MCP call still needs a destination. arguments names it and accepted lists the valid values when there are some
missing_content400Package ZIP import: a required companion file is missing or empty, such as the agent's prompt.md
missing_integration_connection409The run cannot start because of its integrations. errors[] holds one entry per integration; see Connection and readiness entries
missing_manifest400Package ZIP import: the archive has no manifest.json, and is not a bare skill either
missing_signature_headers401Run event ingestion: webhook-id, webhook-timestamp and webhook-signature are all required
missing_skill400The agent declares a skill that is not available to it. Publish it, or share it with the agent's home space
model_already_added409The model is already added for this credential
model_config_has_connections409A configuration's endpoint cannot change while it has connections, because their stored keys would be re-aimed, and provided_by cannot change while connections of the side being left exist. The problem carries connection_count; remove the connections first
model_config_holds_aliases409A configuration cannot become provided by members while aliased models belong to it, since only an organization connection serves an alias. The problem carries alias_count
model_config_provided_by_members409The configuration is provided by each member: only a member's own connection serves it, never an organization connection or an alias. param is config_id
model_config_provided_by_organization409The configuration is provided by the organization: a personal connection serves nothing there. param is config_id
model_config_ambiguous409A connection names no configuration and the organization has several of its provider family that could take it, even counting only those of its side. Pass config_id. The problem carries config_count
model_config_required409The organization has no configuration for this provider, and the caller may not create one. Pass config_id, or ask a member who manages models to create it. param is config_id
model_credential_missing400The selected model has no API key on its provider credential
model_credential_required409No connection serves the model for this call. Provided by each member: the caller has no connection of their own in the configuration, or the call has no member to pay (a schedule, an API key, an end-user or a delegated token). Provided by the organization: it has no connection that serves the model. Add your own connection under Preferences › My model keys, connect the organization's under Settings › Models, or pick another model
model_disabled409A disabled model cannot be the default, and the default model cannot be disabled
model_needs_reconnection409The model's provider credential must be reconnected before it can be the default
model_not_configured400No model is configured for the run
model_not_in_choice400Field code under validation_failed on enable.<i>, disable.<i> or default_model_id of a provider-choice write: the model does not run on the choice's credential
model_not_offered400The provider does not offer that model
model_org_connection_required409A model of an organization configuration becomes the default only when an organization connection serves it. Connect the organization to the model's configuration, or pick another model
model_provider_unregistered409The model is bound to a provider this instance does not register
name_collision409The package id is taken, or names a system package that cannot be overwritten
network_error502Live model search could not reach OpenRouter
no_active_subscription409Billing module. The organization has no subscription to change. Start a checkout instead
no_answer_before_deadlineTool resultMCP {ns}__api_call result entry: the request was sent but not answered before the batch's 45 s deadline, so it may have run. Check before repeating a write
no_billing_account404Billing module. The organization has no billing account
no_changes409Nothing changed since the last published version
no_published_version404The agent has never been published: answered when running, exporting or scheduling it (run the draft instead, or schedule with version_override: "draft")
no_tools_selected400Field code on integrations_configuration.<id>.tools under validation_failed: the agent declares the integration but nothing it selects is callable, so the run would abort at boot
not_a_platform_account403The account belongs to an application of a space (an end-user) and cannot join an organization
not_a_space_member403The caller holds no role in the requested space
not_an_agent400The referenced package exists but is not an agent
not_an_mcp_server422Integration discovery: the server at that URL did not answer as a Streamable HTTP or SSE MCP server
not_cancellable409The run is no longer pending or running, so it cannot be cancelled
not_found, NOT_FOUND404 / 400The resource does not exist or is outside the caller's reach; the two are deliberately indistinguishable. NOT_FOUND (400) is a GitHub import whose repository or branch does not exist
not_grantedTool resultMCP: the caller's role in the space, or its credential's scopes, lack the permission, or a file can be seen but not downloaded. Final: report it, and do not retry in another space
not_sentTool resultMCP {ns}__api_call result entry: the batch reached its 45 s deadline before the request was sent. Repeat it
oauth_client_redirect_mismatch403The OAuth client chosen for a connection declares a redirect URI reserved for the platform's per-server callbacks that is not the one of this connection's authorization server. Change or clear the client's redirect_uri, or delete the client
oauth_client_rejected502The service rejected the integration's OAuth client registration. An administrator must fix the registration
oauth_connection_needs_reconnection410Model-provider OAuth token endpoint used by the sidecar: the credential is flagged as needing reconnection. The sidecar passes it to the agent as a 401
operation_not_allowed403The operation is not permitted on a built-in package or entity
org_creation_disabled403Organization creation is disabled on this instance
org_deleting409The organization is being deleted; no new work is admitted
org_not_found404The organization of the invitation no longer exists
org_run_concurrency_exceeded429The organization reached its concurrent-run cap. Wait for runs to finish
org_run_rate_limited429The organization reached its run launch rate. retry_after is set
organization_has_no_default_space409The package cannot be re-homed: the organization has no default space
package_archive_unreadable422A stored package archive expands past the decompression limit. Republish it
package_copy_restricted403The organization restricts copying packages out of their home space
package_has_no_version409The package has no published version to offer outside its home space
package_not_active_in_space404The package exists but is not active in this space
package_not_found404No package with that id in the caller's organization
package_not_placed404The package is not placed in this space
pairing_expired_or_consumed410The model-provider pairing token expired or was already used
password_already_set409The account already has a password. Use the change-password flow
path_conflict400Editing package files: a path conflicts with another file or directory, or a move target already exists
payload_too_large413The request body or an upload is over its size limit
payment_service_unavailable503Billing module. The payment service is unavailable
personal_space_has_no_members409A personal space takes no other members. Convert it to a team space first
personal_space_immutable409Only the name of a personal space can change
personal_space_not_deletable409A personal space is deleted by offboarding its owner, not directly
personal_space_not_orphaned409The personal space still has an owner in the organization
personal_space_takes_no_end_users409End-users are created in a team space, not a personal one
personal_space_takes_no_keys409API keys are created in a team space, not a personal one
personal_space_takes_offers_only409A personal space takes only what its owner creates, what the organization offers and what the platform activates by default. Share into a team space, or ask an administrator to offer the package
personal_space_takes_no_oauth_clients409OAuth clients are registered in a team space, not a personal one
post_install_failed400The package could not be installed after its archive was accepted
precondition_failed412If-Match does not match the current ETag. The response carries the current ETag
precondition_required428The operation requires an If-Match header
provider_error502Live model search: OpenRouter returned an error
proxy_errorTool resultMCP {ns}__api_call result entry: the credential proxy refused the request without a problem document. The result carries its HTTP status
quota_exceeded402Billing module. The organization is out of credits
rate_limited, RATE_LIMITED429 / 400Too many requests: wait retry_after seconds. See Rate limits. RATE_LIMITED (400) is a GitHub import that hit GitHub's own rate limit
reasoning_level_unsupported400The model does not support the requested reasoning level
reasoning_unsupported400The model does not support reasoning
redirect_uri_reserved400An OAuth client's redirect_uri is one of the platform's per-server callbacks (/api/integrations/callback/<tag> or /api/integrations/callback/cimd/<tag>), which no registered client may use. Register the shared callback or another URI
redundant_space_role409The member's organization role already covers every space; an explicit space role would grant nothing
remote_mcp_endpoint_not_proxied403Credential proxy /proxy: X-Target is the integration's own remote MCP endpoint (an in-run api_call refuses the same target as not_authorized). Its tools are the way in, and they apply the space's tool policy
remote_url_unrenderable422POST /api/credential-proxy/tools/call, POST /api/integrations/{packageId}/discover (the server read of an integration's editor), POST /api/integrations/{packageId}/tool-snapshot/refresh, and a refusal in unlisted of GET /api/credential-proxy/tools: the integration builds its server URL from the connection's variables, and the selected connection's values do not render it. Reconnect with valid values
REPO_TOO_LARGE400GitHub import: the repository is too large to import directly
rerun_agent_mismatch409rerun_from names a run of a different agent
rerun_inline_input_unavailable409A field of the original run was an inline data: URI, which is not stored and cannot be replayed
reserved_entry400Editing package files: the manifest is edited through the package's manifest field, not as a file
role_in_use409The role is still held by space members or pending invitations
role_key_taken409A role with that key already exists in the organization
run_agent_deleted409Run endpoints used by the sidecar: the agent was deleted while the run was in flight, so its definition can no longer be read. Re-create the agent and start a new run
run_definition_gone409Run endpoints used by the sidecar: the version the run pinned was deleted while it was in flight. Re-publish that version, or start a new run
run_in_progress409The package still has runs in progress, so its runs cannot be deleted
run_not_running409The run is no longer running, so it cannot accept this operation
run_sink_closed410The run's event sink is closed. Stop sending events
run_sink_expired410The run's event sink expired
schedule_actor_invalid400The schedule's actor is not valid for this organization and space
schedule_governance_changed409A schedule write: an admin pin, the actor's own pin or an organization default that its connections were judged under changed during the write, and nothing was written. Reload and retry
schedule_modified_concurrently409The schedule changed while the request was handled. Reload and retry
scope_not_in_catalog400Field code under validation_failed: a scope of an agent's integration selection, or of a connect start, is not declared in the auth's scope_catalog
scope_reserved400A package id uses a scope the platform owns (@appstrate or @inline)
session_store_unavailable500Credential proxy: the upstream was called and answered, but the cookies it set could not be saved, so its response is withheld. Not a 503: the call took effect upstream, so do not retry blindly
share_target_is_home409The package already lives in that space
shutting_down503The instance is draining. Retry shortly; retry_after is set
signup_domain_not_allowed403Bootstrap: the owner's email domain is not on the signup allowlist (AUTH_ALLOWED_SIGNUP_DOMAINS). Another signup refusal keeps the code the auth layer gave it
skill_unchanged409The skill already exists with identical content
slug_reserved400The organization slug is a package scope the platform owns
slug_taken400The organization slug is already in use
space_access_changed409The space's visibility or default role changed while the request was handled. Reload and retry
space_has_active_runs409The space cannot be deleted while runs are in progress
space_homes_packages409The space cannot be deleted while it is the home of packages
space_member_exists409The user already has an explicit space role. Use PATCH to change it
space_mismatchTool resultMCP: the call names a space other than the one its request entered. Send a call for another space as its own request
space_not_personal409The operation applies only to a personal space; this one is a team space
starting503The server is still starting up. Retry shortly
storage_limit_exceeded403The write would exceed the organization's storage quota (ORG_STORAGE_QUOTA_BYTES)
subscription_blocked402Billing module. The organization's subscription is suspended or cancelled
subscription_exists409Billing module. The organization already has a subscription. Change its plan instead of starting a checkout
sync_transport_unsupported422Integration server sync, tool listing and POST /api/credential-proxy/tools/call: the integration uses the SSE transport, and only Streamable HTTP servers are read and called
temperature_unsupported400The model does not support a custom temperature
temperature_with_reasoning_unsupported400The model does not accept a temperature together with reasoning
timeout504Live model search timed out, or a connection attempt did not complete its login in time
timestamp_out_of_tolerance401Run event ingestion: webhook-timestamp is outside the accepted window
TOO_LARGE, too_large400 / Tool resultGitHub import: the files exceed the total size limit. In lower case, an MCP refusal: a file passed to a package import is over the package archive size limit
TOO_MANY_FILES400GitHub import: the path holds more files than the import accepts
tool_approvals_limit409Approving tools: the named tools (tools) would exceed 32 approved definitions at this level (the space's, or the organization's). Withdraw an approved definition of the tool first (one by fingerprint, or all of them), then approve the definition to keep
tool_blocked_in_space403The space blocks that tool, declared or not, on an open or a closed catalog (an api_call or api_upload tool included). Nothing was sent
tool_blocks_limit409Blocking tools, in a space or for the organization: a space would block more than 500 tools of the integration, its own blocks and the organization's together (tools names the ones the request would add). Unblock one first
tool_catalog_unavailable503GET /api/credential-proxy/tools (an unlisted refusal) and call_integration_tool: a typed tool's name only its server's catalog maps to an upstream name, and that catalog could not be read (listing_failure, when known: the proxy's problem code or timeout). Nothing was sent; retryable
tool_definition_changed400Field code on integrations_configuration.<id>.tools under validation_failed: the agent selects a tool holding an approval whose definition the server changed since it was approved, declared or not, on an open or a closed catalog. Approve the current definition again, or drop the tool from the selection
tool_definition_not_approved409Remote tool call: the tool holds an approval (the space's or the organization's) or is undeclared on a closed catalog, and the server lists it at a definition nobody approved. Review it in the integration's Tools tab
tool_definition_unavailable409Approving tools: the listed definition of the named tools (tools) was too large to keep, so it cannot be reviewed nor approved
tool_governed_by_organization409Space tool policy: the organization approved the named tools (tools), so only its approvals count for them in every space and a space cannot approve them; or a space tried to lift a block only the organization set. Ask a holder of org-integrations:configure
tool_hidden409Approving tools: the named tools (tools) are ones the platform hides (hidden_tools, the connect tool), and a hidden tool cannot be approved
tool_snapshot_stale409Approving tools: the server no longer lists the named tools (tools) at the fingerprint reviewed. Read the server again and review again
tree_too_large413Editing package files: the package would exceed its total size limit
type_mismatch400The package already exists under another package type
unauthorized401No credential, or an invalid, revoked or expired one
unauthorized_target403Credential proxy: the target is outside the integration's authorized_uris, or none are declared, or it carries userinfo (user:pass@host, an empty @ included)
undeclared_connection_override400Field code on connection_overrides.<id> under validation_failed: the key is not an integration the agent declares. Remove the key
undeclared_dependency_override400Field code on dependency_overrides.<id> under validation_failed: the key is not a skill or integration the agent declares. Remove the key
unexpected500Billing module. The usage check failed, so usage is refused
unexpected_package_type400The archive holds a package of another type than the type the import asked for. The problem carries actual_type and expected_type
unknown_argumentTool resultMCP: the call carries an argument the tool does not declare. arguments names it. A typed tool of a remote server is checked this way when its schema closes its properties (additionalProperties: false); otherwise its server judges the keys
unknown_operationTool resultMCP: the operation_id (the id of describe) is not in the operation catalog. Find it with search
unknown_spaceTool resultMCP: space_id is not a space the caller can act in. accepted lists the ones it can
unknown_tool400 / Tool resultField code on integrations_configuration.<id>.tools under validation_failed: the agent selects a tool the integration does not expose. Also an MCP tool result: call_integration_tool or describe (kind integration_tool) names no tool you can call in this space; take the name from search (kind integration_tool)
unknown_variable400Field code on variables.<name> under validation_failed: the connection sets a variable the integration does not declare
unrenderable_authorized_uri400Field code on credentials.<field> under validation_failed: the submitted value leaves an authorized_uris entry of the auth unrenderable, so every later call would be refused
unrenderable_variable400Field code on variables.<name> under validation_failed: the value leaves a URL template, or an authorized_uris entry of the auth, unrenderable
unresolved_placeholder400Credential proxy: the target, a header or the body holds a {{field}} placeholder the connection cannot fill
unsupported_api_version400Appstrate-Version names a version the server cannot serve
upload_already_written409The staged upload already has its content
upload_expired410The staged upload expired, or its reuse window elapsed
upload_staging_limit_exceeded429You hold the maximum number of active staged uploads (UPLOAD_MAX_ACTIVE_PER_ACTOR)
upstream_credential_rejected502Remote MCP tool call, listing (unlisted) or server sync: the server refused the connection's credential. upstream_status is its HTTP status; credential the platform's verdict when its refresh judged it (needs_reconnection: the owner must reconnect). required_scopes lists the scopes the server asked for in a Bearer challenge (401, or 403 insufficient_scope), and connection_id the connection it refused: reconnect it in place with those scopes
upstream_invalid_params422POST /api/credential-proxy/tools/call: the remote MCP server answered the tools/call JSON-RPC error -32602 (Invalid params), refusing the arguments or the tool name (the platform itself checks only the required arguments and, when the tool's schema closes its properties, unknown keys: unknown_argument; the server may also answer with its own isError result). mcp_error carries its code and its message, cut at 512 characters: the server's own text
upstream_mcp_error502POST /api/credential-proxy/tools/call and the server sync of POST /api/integrations/{packageId}/discover: any other JSON-RPC error of the server, -32602 to the handshake or the sync included. mcp_error carries its code and its message, cut at 512 characters: the server's own text
upstream_response_too_large502POST /api/credential-proxy/tools/call and the server sync of POST /api/integrations/{packageId}/discover: the remote MCP server answered with more than the bound (2 MiB at most). A tool call has then run: ask the tool for less rather than repeating it
upstream_timeout504Credential or model proxy: the upstream did not answer in time; a remote MCP server not answering a tool call (45 s) or the server sync (20 s), the tool possibly run
upstream_unreachable502Credential or model proxy: the upstream could not be reached
upstream_unresolvable502Credential or model proxy: the upstream host could not be resolved
usage_context_required400A call on a platform-provided model arrived without a valid run context (X-Run-Id)
usage_not_allowedVariesNot a code but a type: a chat turn refused by a module's usage check carries type https://docs.appstrate.dev/errors/usage-not-allowed, the module's own code (such as quota_exceeded) and the status the module chose, 403 when it names none. This body carries no instance or request_id
validation_failed400Body validation failed. Every offending field is in errors[]
variables_not_declared400Field code on variables under validation_failed: variables were submitted for an integration that declares none
version_artifact_unavailable422The published version exists but its stored artifact cannot be read
version_exists409That version is already published and immutable. Bump the version
version_not_higher409The version is lower than the highest published version
version_yanked410The requested version was yanked and can no longer be run
view_as_forbidden403Only an organization owner or administrator can preview a role, and only one that grants nothing they lack
view_as_not_found404The space, role or organization named by the role preview does not exist
view_as_unsupported400The role preview is not supported for this authentication method
webhook_limit_reached400The organization or space is at its webhook limit
wildcard_not_authorized400Field code on integrations_configuration.<id>.tools under validation_failed: the agent selects every tool (*) of an integration that does not declare allow_undeclared_tools: true
wrong_package_type409The package is not an integration
zip_bomb400Package ZIP import: the archive expands past the decompression limit
zip_invalid400Package ZIP import: the file is not a readable ZIP archive

Connection and readiness entries

A run blocked by its integrations answers 409 missing_integration_connection with one errors[] entry per integration (field: integrations.<id>). Each entry carries its own code and, where it helps a client act without parsing detail, extra snake_case members. On the credential proxy, a resolution failure comes back with its entry code as the top-level code of a 409 instead (for example must_choose_connection), with the entry in errors[]. In the chat, a model whose subscription credential died answers 409 needs_reconnection.

Entry codeMeaningExtra members
not_connectedNo connection to this integration is accessible to the callerauth_key, required_scopes
must_choose_connectionSeveral connections match; the caller must pick onecandidate_connections (each with id, label, account_id, owned_by_actor, needs_reconnection)
needs_reconnectionThe connection exists but its credential is deadconnection_id, owned_by_actor, auth_key, required_scopes
insufficient_scopesThe connection lacks scopes the selected tools needconnection_id, missing_scopes, owned_by_actor, auth_key, required_scopes
auth_key_mismatchThe agent requires an auth the caller's connections do not userequired_auth_key, available_auth_keys
auth_key_serves_no_selected_toolThe auth the agent requires exposes none of its selected toolsrequired_auth_key
auth_serves_no_selected_toolA connection of the set uses an auth that exposes none of the selected toolsconnection_id
auth_key_on_unauthenticated_integrationThe agent names an auth_key for an integration that declares no auth method. Remove auth_key: no connection can clear itrequired_auth_key
remote_binds_one_connectionA remote run binds one connection per integration, but the connection choice binds several to this one. Narrow it to one with a member pin, or run the agent on the platform
pinned_connection_unavailableThe connection pinned for this agent is gone or unusable
override_connection_unavailableThe connection passed as a per-run override is gone or unusable
override_outrankedThe per-run override falls outside the pin or organization default that governs the integration
connection_set_too_largeMore than 20 connections would bind to the integration: the imposed set plus the additions the selection makes. The union is refused, never truncated. A member pin write that would exceed it answers a top-level 409 with the same codesource
required_integration_unboundThe set chosen for a required integration is empty, so nothing would bind. Name a connection there, or remove the empty setsource
integration_not_foundThe agent declares an integration that does not exist
integration_wrong_typeA package declared as an integration is another package type
integration_invalid_manifestA declared integration's manifest fails validation
integration_not_activeA declared integration is not active in this space
agent_not_activeOnly in the readiness read, with field: agent: the space has switched the agent off. A run launch answers 404 agent_not_active_in_space instead
integration_unboundOnly in a launch warnings[], never an error: a non-required integration is bound to no connection by the layer named in source, so the run proceeds without itsource

When the caller opted in to connect offers, an entry that an OAuth connect flow can clear also carries connect_url, expiresAt and packageId: a single-use, short-lived link to open, never to store.

Retrying

  • 429 or 503 with retry_after: wait that many seconds (the Retry-After header carries the same value), then retry. rate_limited, org_run_rate_limited, chat_capacity and shutting_down set it.
  • 429 without it (org_run_concurrency_exceeded, upload_staging_limit_exceeded) and 503 starting: back off and retry once in-flight work has finished or the server is up.
  • 5xx without a hint: retry with exponential backoff and jitter, starting around one second and capped at one minute. For a POST, send an Idempotency-Key so a retry cannot create a duplicate. Only the operations that declare the header accept it.
  • 409 idempotency_in_progress: retry shortly with the same key. 422 idempotency_conflict: do not retry; that key belongs to a different request.
  • Other 4xx: do not retry unchanged. The request, or the state it depends on, needs to change first. A few 409 codes (conflict, schedule_governance_changed, schedule_modified_concurrently, space_access_changed) ask you to reload the resource and try again.

Examples

Authentication failure

HTTP/1.1 401 Unauthorized
Content-Type: application/problem+json
WWW-Authenticate: Bearer error="invalid_token"
{
  "type": "https://docs.appstrate.dev/errors/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "detail": "Invalid or expired API key",
  "instance": "urn:appstrate:request:req_…",
  "code": "unauthorized",
  "request_id": "req_…"
}

Rate limited

HTTP/1.1 429 Too Many Requests
Content-Type: application/problem+json
Retry-After: 42
RateLimit: limit=20, remaining=0, reset=42
RateLimit-Policy: 20;w=60
{
  "type": "https://docs.appstrate.dev/errors/rate-limited",
  "title": "Rate Limited",
  "status": 429,
  "detail": "Too many requests. Please try again shortly.",
  "instance": "urn:appstrate:request:req_…",
  "code": "rate_limited",
  "request_id": "req_…",
  "retry_after": 42
}

A header the credential cannot honor

{
  "type": "https://docs.appstrate.dev/errors/header-not-allowed",
  "title": "Header Not Allowed",
  "status": 400,
  "detail": "Appstrate-User is only supported with api_key auth, not session authentication.",
  "instance": "urn:appstrate:request:req_…",
  "code": "header_not_allowed",
  "request_id": "req_…",
  "param": "Appstrate-User"
}

On this page