Dexby

Errors

Every API and SDK error code, and every tool refusal code, with the fix.

An API request error comes back as an HTTP error (a thrown DexbyError in the SDK). A session tool refusal comes back to the model as { ok: false, error }. The request can succeed at the HTTP level without the action succeeding. The model reads the refusal to decide what to do next.

Error codes

REST answers { "error": { "code", "message" } } with the status below and a Request-Id header. The SDK throws a DexbyError with the same code and message, plus status, requestId, retryAfter, issues and choices. A code this SDK version does not know arrives as sent.

CodeStatusMeaningWhat to do
VALIDATION_ERROR400Invalid body, query, or tool input, including a missing userId on a call that acts for a user.Read issues, fix the request. Every user-scoped call names its userId.
MISSING_CONNECTION400The user has not connected this connector.Send the user a connect link.
REAUTH_REQUIRED400The provider rejected the stored credential.Send the user a connect link to connect again.
CONNECTION_NOT_FOUND400/404The named account is not one of the user's for this connector.List accounts with GET /v1/connections?userId=user_123 and pass a valid id.
EXECUTION_ERROR400/500The tool failed at the provider or a credential rotation failed.Read message. Retry only if the tool is safe to repeat.
UNAUTHORIZED401API key missing, unknown, revoked, or expired.Send Authorization: Bearer $DEXBY_API_KEY with a key from Configure → API keys in the dashboard.
INSUFFICIENT_SCOPES403The account was granted neither a permission the tool needs nor a broader one that covers it. missingScopes lists them.Send the user a connect link to connect again and approve them. Check the auth config's scopes include them.
ACTION_DISABLED403The tool is turned off in the project or the account's auth config, or the chosen account is a global account whose admin has not allowed the tool (or proxying, for /v1/tools/proxy).Turn it on in Build → Catalog or Build → Auth configs, or allow it in the global account's permissions under Connections.
NOT_FOUND404No such route or resource.Check the path and id.
TOOL_NOT_FOUND404No such tool, or the session has no tool with that name.Get ids from GET /v1/tools or names from GET /v1/sessions/:id/tools.
CONNECTOR_NOT_FOUND404No such connector.Get ids from GET /v1/connectors.
SESSION_NOT_FOUND404No such session, or it expired or was revoked.Create a new session.
AMBIGUOUS_CONNECTION409The user has several active accounts, global ones included, and no default; or a name matches both their own and a global account.Pass connectionId (one of choices, where global: true marks a global account), or set a default with POST /v1/connections/:id/default.
CONFLICT409The resource already exists, or expectedRevision is stale.Pick another name, or reread the connection and retry with the current revision.
IDEMPOTENCY_CONFLICT409The Idempotency-Key was already used for a different request.Use a new key for a new request.
IDEMPOTENCY_IN_PROGRESS409The first request with this Idempotency-Key is still running.Retry shortly with the same key: it then answers with the first result.
KEY_TAKEN409The project already has an auth config with that key.Choose another key.
AUTH_CONFIG_IN_USE409Accounts are connected through the auth config, so its authentication method cannot change.Disconnect them, or create another auth config.
CONNECTOR_UNAVAILABLE409The connector behind an auth config is no longer available.Pick another auth config in Build → Auth configs.
INTERNAL_ERROR500Unexpected server error. The message has no details.Retry. If it persists, check Operate → Logs.
UPSTREAM_ERROR502The provider, an MCP server, or an imported API failed or could not be reached.Retry later. Check the provider's status and limits.
CREDENTIAL_UNAVAILABLE503A stored secret could not be read or written.Retry later. If an account was being added, refresh the list before retrying.
FORBIDDEN403An API key asked for something only the dashboard does, such as adding a global account.Do it in the dashboard.
FORBIDDEN_ENDPOINT403POST /v1/tools/proxy refuses this connector or path.Use a connector with a proxy base URL and a path on its host.
NAME_TAKEN409The user already has an account with that name for this connector.Choose another name.
RATE_LIMITED429The organization made more requests this minute than its plan allows. Retry-After says how many seconds to wait.Wait retryAfter seconds. The SDK retries for you, writes under an idempotency key.
CONNECTION_ERRORSDKDexby could not be reached.Check the network and baseURL. Reads are retried for you.
TIMEOUTSDKNo answer within timeout.Raise timeout, or retry if the call is safe to repeat.
ABORTEDSDKYour AbortSignal fired.Nothing, unless the abort was unexpected.
INVALID_RESPONSESDKAn answer this SDK version cannot read.Upgrade the SDK. Quote requestId to support.
BROWSER_KEYSDKnew Dexby() ran in a browser, where anyone can read the key.Call Dexby from your server.
WEBHOOK_INVALIDSDKverifyWebhook found no matching signature, a timestamp outside the tolerance, or a body that is not an event this SDK version knows.Check the endpoint's signing secret and that you pass the raw body. Upgrade the SDK for a new event type.

Other codes of the hosted Connect page (FORBIDDEN, LINK_USED, LINK_EXPIRED) are in public endpoints. GET or DELETE on an MCP route answers 405 with no body. An MCP endpoint URL that names no user answers 400 with the JSON-RPC error -32602, whose message says to end the URL with /<your user id>.

Refusal codes

A session tool answers { ok: false, error: { code, message } } with HTTP 200. message tells the model what to do next; some refusals add fields such as connector, choices, or issues.

CodeMeaningFix
validation_errorThe arguments do not match the tool's schema. Includes issues.The model reads the schema with dexby_get_action_schemas and calls again.
action_not_allowedThe tool is not in the session's scope, or does not exist.Find tools with dexby_search_actions, or widen connectors, actions, or policy.
connector_not_allowedThe connector is not in the session's scope.Add it to the session's connectors.
connection_requiredThe user has not connected the connector. Includes connector.The model calls dexby_connect_account and gives the user the link.
reauth_requiredThe stored credential was rejected. Includes connector.Same: the user connects again through the link.
account_selection_requiredSeveral accounts and no default. Includes choices and accounts (id, name, global).The model retries with account, or asks the user. Or set accounts on the session.
account_not_foundThe named account does not exist for this user and connector.The model calls dexby_list_connections and uses a listed account.
not_permitteddexby_proxy sent a non-GET request in a read-only session, the agent tried to make a global account the default or disconnect it, or a global account is not permitted to run the action or proxy.Use GET, or create the session without policy.readOnly. For a global account, ask an admin to allow the action.
path_not_alloweddexby_proxy refused the path.Use a path on the connector's API host.
path_not_founddexby_read_result found nothing at path.Read the result from its root, then pick a valid path.
result_not_foundThe stored result expired or belongs to another session.Run the tool again.
connect_unavailableA connect link could not be made.Check the connector's auth config in Build → Auth configs.
idempotency_conflictThe idempotencyKey was already used for a different request.Use a new key.
in_progressThe first call with this idempotencyKey is still running.Retry shortly with the same key.
upstream_errorThe provider or the tool failed.Read message. Retry only if the tool is safe to repeat.

An idempotencyKey (1 to 200 characters) on dexby_execute makes a retry within 24 hours return the first outcome with replayed: true. When nothing ran (validation_error, action_not_allowed, account_not_found, connection_required, reauth_required), the key is released. See sessions.

On this page