> ## Documentation Index
> Fetch the complete documentation index at: https://docs.atlaso.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

> Find the code, fix the cause, and decide whether to retry.

At \$0.00 in Atlaso credit, the AI clean-up of saved messages waits, for Gateway
calls and Plugin messages alike. Saving, recall, Ambient Memory, Ask and own-key
model calls keep working. See [Credits and learning](https://docs.atlaso.ai/account/credits-and-learning.md).

Errors have this shape. This example is the actual unknown-model response body:

```json theme={null}
{
  "error": {
    "message": "This model is not available through Atlaso. Choose an exact id from GET /v1/models.",
    "type": "invalid_request_error",
    "param": "model",
    "code": "model_not_available",
    "doc_url": "https://docs.atlaso.ai/gateway/errors#model_not_available"
  }
}
```

Read `error.code` for the cause, `param` for the affected field (or `null`), and
`message` for the fix. Open `doc_url` for the matching section of this reference. Keep the response's `x-request-id` when contacting support.
Provider validation errors can preserve a provider-specific code, so your client
also needs a fallback for unknown codes. Unrecognized provider codes keep their
original value and link to [provider\_error](#provider_error), which explains
provider-specific errors. Atlaso never relays a provider's own link fields:
`doc_url` always points to this page. A provider's message text is relayed after
recognised API keys are scrubbed from it, so it can contain a link the provider wrote.

## Authentication and availability

### bedrock\_payment\_method\_required

**403**, `param: model`. AWS needs a valid payment method on your AWS account
before it can enable this model, sold through AWS Marketplace. Add or fix one
in AWS Billing, Payment preferences, wait 5 minutes, then try again. Your key
is fine and remains working. See [AWS payment methods](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-payments.html).

### bedrock\_model\_access\_required

**403**, `param: model`. AWS has not enabled the named model for your AWS account.
Request access in the Amazon Bedrock console (Model access), or ask AWS, then try
again. Your key stays working and your other Bedrock models still work. This is
model access, not a request to replace your key. See [AWS model access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html).

### bedrock\_inference\_profile\_required

**400**, `param: model`. AWS requires an inference profile for this model. Choose
this model's catalog ID from `GET /v1/models`; Atlaso accepts only catalog IDs as
`model`, not an inference-profile ID or ARN. If a catalog ID gets this error,
report it to Atlaso support. Your key stays working. See
[AWS inference profiles](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-support.html).

| HTTP | `error.code` | Fix |
| - | - | - |
| 401 | `invalid_api_key` | Send an active, unexpired Atlaso key from the **API keys** page as `Authorization: Bearer`. Remove any `x-atlaso-key` header. |
| 403 | `gateway_not_enabled` | Gateway access is not enabled on this account. Contact support; retrying does not enable it. |
| 503 | `auth_unavailable` | Retry shortly. Atlaso could not check the key or unlock the saved credential; no model call was made. |
| 500 | `internal_error` | Retry cautiously. If repeated, contact support with `x-request-id`. |
| 503 | `memory_unavailable` | On a model call: retry, or change the key's "If memory can't be reached" setting on the **API keys** page before calling without memory. No model call was made. On the Memory API: see [memory\_unavailable](#memory_unavailable). |

## Request errors

| HTTP | `error.code` | Fix |
| - | - | - |
| 400 | `invalid_body` | Send one JSON object in the format of the route you called, without duplicate keys or non-finite numbers. The body may be uncompressed or sent with `Content-Encoding: gzip` or `deflate`. |
| 400 | `invalid_request_error` | Fix the field in `param`, such as malformed tool-call arguments or an orphan tool result. |
| 400 | `unsupported_parameter` | Remove the named setting, use the supported value in the message, or choose a compatible model. On a key with a spending limit, a call Atlaso cannot price is also refused with this code; see [unsupported\_parameter](#unsupported_parameter). |
| 404 | `count_tokens_not_available` | Anthropic's `count_tokens` method is unavailable on the translated Messages route. See the [Anthropic client guide](https://docs.atlaso.ai/gateway/anthropic-sdk.md). |
| 404 | `batches_not_available` | Anthropic's batch methods are unavailable on the translated Messages route. See the [Anthropic client guide](https://docs.atlaso.ai/gateway/anthropic-sdk.md). |
| 404 | `models_not_available` | `models.list()` is unavailable through an Anthropic client. See the [Anthropic client guide](https://docs.atlaso.ai/gateway/anthropic-sdk.md). |
| 400 | `model_kind_not_supported` | Choose a chat model from `/v1/models`; this kind is not available through Atlaso yet. |
| 404 | `model_not_available` | Use an exact ID from `/v1/models`. A provider can also report this when your saved key cannot find the model. |
| 413 | `request_too_large` | Shorten messages or images. The default body ceiling is 32 MiB, measured after a gzip or deflate body is decompressed; provider limits can be lower. |
| 404 | `not_found` | Check the URL. The public routes are `POST /v1/chat/completions`, `POST /v1/responses`, `POST /v1/messages`, `GET /v1/models` and the [Memory API](https://docs.atlaso.ai/gateway/memory-api.md): `GET` and `POST /v1/memory/facts`, `POST /v1/memory/facts/batch`, `POST /v1/memory/search`, `DELETE /v1/memory/facts/{id}`, `PATCH /v1/memory/facts/{id}` and `DELETE /v1/memory/user`, plus `GET /v1/calls/{call_id}` and `GET /v1/usage/app-users`, `POST` and `DELETE /v1/browser-tokens`, and `DELETE /v1/browser-tokens/{id}`. `GET /v1/models/{id}` is not served; read the model from the `GET /v1/models` list instead. |
| 405 | `method_not_allowed` | Use the HTTP method listed for that route under `not_found`. The message lists every route with its method. |
| 400 or 409 | `provider_invalid_request` | Fix the request using the message and `param`. The translating adapter preserves a provider conflict as 409. |
| Provider's other 4xx | `provider_bad_request` | Fix the provider validation failure. This fallback is used when the pass-through adapter has no safe provider code to relay. |
| Provider's other 4xx | Provider-specific code | Inspect the sanitized message and field. Some provider codes are relayed rather than renamed; they are not a closed list. |
| 400 | `user_id_required` | This per-user key requires memory: send the app user's ID in the `x-atlaso-user` header from your server. `safety_identifier` and `user` are not read as the ID. No model call was made. |
| 400 | `user_id_conflict` | A per-user key reads the ID only from `x-atlaso-user`; the field named in `param` (`safety_identifier` or `user`) names a different user. Remove it or send the same ID. No model call was made. |
| 400 | `user_id_not_accepted` | Use 1 to 256 printable characters that are not an API key, token or other secret. The message says why; it never repeats the ID. |
| 401 | `browser_token_invalid` | Ask your server for a new browser token. |
| 400 | `browser_token_user_fixed` | Remove the app-user header; the browser token already binds its user. |
| 403 | `browser_token_model_not_allowed` | Ask your server for a token that permits this model. |
| 403 | `browser_token_read_only` | Ask your server for a token with the needed memory access. |
| 403 | `browser_token_not_allowed` | Use a server API key for this route. |
| 400 | `invalid_ttl` | Set `ttl_seconds` from 60 through 3600. |
| 400 | `invalid_limits` | Correct the field named in `param`. |

## Provider keys and billing

Provider balances are separate from Atlaso learning credit. Adding Atlaso credit
cannot fix a provider billing error; your own-key calls are billed by the provider.

| HTTP | `error.code` | Fix |
| - | - | - |
| 400 | `provider_key_missing` | Add and enable the model provider's key on the **Provider keys** page. |
| 400 | `provider_key_disabled` | Turn on your saved provider key on the **Provider keys** page. |
| 401 | `provider_key_rejected` | Replace the saved provider key on the **Provider keys** page. Your Atlaso key authenticated successfully. |
| 400 | `provider_workspace_not_found` | Correct the Workspace ID saved with your provider key on the **Provider keys** page. |
| 400 | `provider_workspace_required` | Add the required Workspace ID on the **Provider keys** page. |
| 400 | `provider_endpoint_missing` | Add the endpoint data your saved provider key needs (the message names it) on the **Provider keys** page. No model call was made. |
| 403 | `provider_permission_denied` | Grant your saved key access, remove a restricted setting, or choose an accessible model. |
| 402 | `provider_billing_error` | Fix billing or credit on your provider account. |
| 429 | `insufficient_quota` | Add credit with your provider. Waiting briefly will not fix exhausted quota. |
| 429 | `provider_spend_limit` | Raise the provider account's spending limit in its console, or wait for its reset. |

`insufficient_quota` is the wire code. Activity's internal error class for that
case is `provider_quota_exhausted`. It is different from a temporary rate limit.

## Limits and transient provider failures

| HTTP | `error.code` | Fix |
| - | - | - |
| 429 | `rate_limited` | Slow requests on this Atlaso key and honor `Retry-After`. No model call was made. |
| 429 | `account_rate_limited` | Reduce requests across all keys in your Atlaso account; honor `Retry-After`. No model call was made. |
| 429 | `key_daily_limit` | Raise the key's daily limit or wait for the next UTC day. Honor `Retry-After`. |
| 429 | `provider_rate_limit` | Wait for the provider's indicated delay or adjust provider limits and concurrency. |
| 503 | `provider_busy` | The provider is temporarily busy or overloaded (for example, Anthropic's HTTP 529). Try again shortly. |
| 502 | `provider_invalid_response` | The provider returned an unusable reply. Read the message for the reason and check provider usage before retrying. |
| 502 | `provider_unavailable` | Check provider usage before retrying: the call may already have reached it. |
| 502 | `provider_reply_failed` | The provider stopped the reply without a usable answer. The call reached the provider and may be billed; retry or change the request. |
| 504 | `provider_timeout` | Check provider usage before retrying: a timeout does not prove the call was unbilled. |

For a model with several live, configured hosts, Atlaso can try another host
using your saved, enabled, working key for that host. It follows `provider.order`,
then the catalog's host order, subject to `provider.only` and `provider.ignore`.
A host temporarily marked unavailable is skipped when another candidate is ready.
A catalog row pinned to one host stays on that host. A model with only one
routable host does not use routing retries.

Atlaso can switch after a connection failure, a connect timeout, HTTP 408, 429 or
5xx, an error the host reports before any answer text, or a key, access, billing
or quota refusal. It never switches once the request was sent and the reply then
fails or stalls (a read timeout: the host may bill it), once answer text has
started, or after a request-shape error, an unsupported setting, a content filter
or a client disconnect. `provider.allow_fallbacks: false` stops
host switching. It does not disable the remaining host's retry.

When only one candidate remains on the multi-host route, Atlaso may retry that
host once after a connection failure, a connect timeout, HTTP 408, 429 or 5xx. It waits
between 0.5 and 2 seconds, honoring a `Retry-After` within that range; it does not
retry when the requested wait exceeds 2 seconds. Key, billing and quota refusals
are not retried on the same host. There are at most three attempts in total.

`x-atlaso-provider` names the hostname that actually answered. Each attempt has
its own Activity record and is priced separately from its reported usage and
catalog prices. An attempt replaced by another is marked `switched`. The reply's
call ID and cost describe the final attempt, not the sum of all attempts. A call
that never reached a provider has no inference charge; missing usage after a
provider call is not evidence of a zero bill.

Your SDK may retry independently; choose its retry settings explicitly. A client
timeout, or an edge 502, 504 or 524 page, with automatic retries can make the provider run and
bill the same non-streamed call twice, because the provider keeps working after
your client or the network in front of the gateway gives up (a 524 means the request
reached the gateway). For long answers, set a longer timeout or stream the reply. A refusal that a retry
cannot fix (a limit or budget stop, a key problem, a bad request, a missing user
ID on a key that requires memory) carries `x-should-retry: false`, which the
OpenAI SDKs follow. A refusal before any
model call has no provider inference charge. A failed call that reached the
provider can still be billed.

## Streams

After a streaming response starts, HTTP status cannot change. Inspect SSE frames
for an error even if the initial HTTP status was 200. On Chat Completions, an
error is a frame with an `error` object. On Responses, it is an `error` event
(with `code`, `message`, `param` and `doc_url` at the top level) or a
`response.failed` event (with the error in `response.error`). Treat both as
failures. An error sanitizer
can use `provider_error` when a provider's error code is absent or unsafe. A stream
interruption can emit `provider_unavailable`, or `provider_timeout` when the
provider stalls past the read timeout; `stream_interrupted` is also a
call-record classification, not a promise of a separate HTTP response code.
Do not treat an incomplete stream as a complete answer or blindly replay a
request whose tools may already have run.

## Blocked before reaching Atlaso

The network in front of the gateway (its firewall and proxy) can answer a request
itself. Its answer has no `x-request-id`, which Atlaso sets on every reply,
errors included. It is usually an HTML page, and JSON when the client asks for
JSON, but it never carries an Atlaso `error.code`. Some ordinary text can trigger its firewall, for
example a file path such as `../../etc/passwd`, a SQL fragment such as
`' ; DROP TABLE x; --`, or `${jndi:`. The Atlaso SDK reports these answers with
their own kinds instead of `auth` or `server`:

| HTTP | `kind` (also `code`) | Meaning and fix |
| - | - | - |
| 403 | `edge_blocked` | The request was stopped before it reached Atlaso. Atlaso did not check your API key. Nothing was saved and no model was called. See [details](#edge_blocked). |
| other 4xx or 5xx | `edge_error` | The network in front of the gateway answered instead of Atlaso, so the request may not have reached it. It may be retried automatically. See [details](#edge_error). |

### edge\_blocked

What happened: an HTTP 403 answer without `x-request-id` (an HTML page, or JSON
when the client asks for JSON) came from the network in front of the gateway, not
from Atlaso. Atlaso never saw the request. Atlaso did not check your API key. The
SDK's message says so and includes at most the page's short title, never the page
itself.

How to fix: The SDK does not retry it automatically, because the same text is
usually blocked again. If the text is ordinary, contact support with the time of
the call (UTC) and the route; there is no request id to quote.

### edge\_error

What happened: another 4xx or 5xx answer without `x-request-id`, for example a
proxy error page. A 502, 503 or 504 page (or 520 to 526) is what you
see for a minute or two while the gateway restarts for a deploy. It did not come
from Atlaso's API, and the request may or may not have reached Atlaso.

How to fix: It may be retried automatically. The SDK applies the same retry rules
as for any other reply with that status: a 408, 409, 429 or any 5xx is retried with
the usual backoff and `maxRetries` / `max_retries`; other 4xx answers are not
retried. Writes keep their own rules: a memory add is retried only after a 429 or
a 5xx, always with its idempotency key, so the fact is saved once, and an update is
never retried. If the retries run out after a 5xx, or its `Retry-After` is longer
than the time left, a memory add returns `unknown`: resend the same text with the
same idempotency key. If it keeps happening, contact support with the time of
the call (UTC).

With the SDK's scoped clients (`client()` and `anthropic()` on a user scope), your
OpenAI or Anthropic client raises its usual status error (for example
`PermissionDeniedError` for 403) with the same plain message, and
`classify(err).code` is `edge_blocked` or `edge_error`. It never retries `edge_blocked`; for `edge_error`
it keeps its own retry rules for that status. With a client you scope
yourself through `headers()`, the client keeps its own retry setting and its error
message can contain the page; pass the error to `classify()` for the plain kind
and message.

## Monthly budget stop

| HTTP | `error.code` | Fix |
| - | - | - |
| 429 | `monthly_budget_reached` | Raise the account budget, turn off its optional stop, or wait for the next budget month. No model call was made. |

This refusal carries `x-should-retry: false` and no `Retry-After`. See
[Limits and budgets](https://docs.atlaso.ai/gateway/limits-and-budgets.md#monthly-budget-and-stop).

## Memory API errors

The Memory API also uses `invalid_api_key`, `gateway_not_enabled`, `rate_limited`
and `memory_unavailable` from above. Its errors have the same five-field `error` object.

| HTTP | `error.code` | Fix |
| - | - | - |
| 400 | `missing_user_id` | Send the `x-atlaso-user` header. A `user` body field is not read as the ID. |
| 400 | `user_id_conflict` | The add body's `user` names a different user than `x-atlaso-user`. Remove it or send the same ID. |
| 403 | `app_user_limit_reached` | This key's users reached its limit (10,000 by default). Nothing was saved. Delete users you no longer need, or contact support. |
| 400 | `user_id_not_accepted` | Use one printable, non-secret ID of at most 256 characters. Do not repeat the header. |
| 403 | `memory_scope_owner` | This key's **Memory for** is **Me**, and the request named an app user. Send no `x-atlaso-user` header and no `user` field to reach your own memory, or use a key set to Memory for each user of my app. Chat, Responses and Messages calls with the key's memory on refuse it too. |
| 403 | `memory_off` | This key's **Memory for** is **Me** and its memory is Off. Set it to Use only or Use and learn on the **API keys** page. |
| 403 | `owner_erase_dashboard_only` | A key whose **Memory for** is **Me** cannot delete all your memories. Nothing was deleted. Use **Delete all memories** on the dashboard. |
| 400 | `memory_scope_per_user` | This key keeps memory for each user of your app and the request named no user. Send the user's id in `x-atlaso-user` (`atlaso.for_user(id).memory`). |
| 400 | `unknown_parameter` | Remove the unsupported query parameter; list accepts `limit` and `after`. |
| 400 | `unknown_field` | Remove the unsupported JSON field. |
| 400 | `missing_text` | Send non-empty `text` when adding a fact. |
| 400 | `missing_query` | Send `query` when searching memory. |
| 400 | `invalid_text` | Keep `text` within 4,000 characters and omit NUL characters. |
| 400 | `invalid_query` | Use 1 to 2,000 characters with no NUL in `query`. |
| 400 | `invalid_limit` | Set `limit` to a whole number from 1 through 100 for list, or 1 through 20 for search. |
| 400 | `invalid_fact_id` | Use the UUID returned by add or list. |
| 400 | `invalid_idempotency_key` | Send one `Idempotency-Key` header with 1 to 255 printable ASCII characters on a memory add or batch request. |
| 400 | `invalid_after` | Use a fact ID from the same user's list as the cursor. |
| 400 | `fact_rejected` | Submit one short, plain statement that can be saved. |
| 404 | `fact_not_found` | A key whose **Memory for** is **Me** named a fact it cannot reach, such as a fact of another project or a shared fact. Use an id from the list. |
| 409 | `fact_replaced` | The fact was saved, then replaced or deleted. Continue with `replaced_by`; null means the fact or its replacement was deleted. |
| 409 | `idempotency_in_progress` | An earlier add or batch with the same `Idempotency-Key` for this user is still being saved. Wait for `Retry-After` (1 second), then resend the same body with the same key. See [details](#idempotency_in_progress). |
| 409 | `idempotency_key_reused` | This `Idempotency-Key` was used in the last 24 hours for a different add or batch for this user. Use a new key for a new request. See [details](#idempotency_key_reused). |
| 503 | `not_configured` | App-user memory is not configured on the service. Contact support. |
| 503 | `unavailable` | Retry after the indicated delay. |
| 503 | `delete_pending` | A deletion for this user (or one of their facts) began and has not finished. Retry the same request after `Retry-After`; retrying is safe. |
| 503 | `search_unavailable` | Retry search after `Retry-After: 1`. |
| 503 | `forget_pending` | A key whose **Memory for** is **Me** deleted the fact, but cleanup has not finished. Retry the same request after `Retry-After`; retrying is safe. |

Once a deletion has finished, an add through the Memory API can save the same
fact again, so the Memory API never returns `fact_forgotten`; see
[fact\_forgotten](#fact_forgotten).

Memory routes also return `invalid_body` (400) for a non-object JSON body and
`request_too_large` (413) above their 64 KiB body limit. On a chat call, an absent
or rejected user ID skips memory instead of returning the Memory API's ID error,
unless the key requires memory: then the call is refused with `user_id_required`
or `user_id_not_accepted` (see [Request errors](#request-errors)).

On `POST /v1/messages`, `metadata.user_id` does not choose the app user's memory.
Without `x-atlaso-user`, a per-user key answers without memory and reports
`reason=no_user_id`. If both values differ, the request gets 400
`user_id_conflict` before a provider call.

### Shared memory errors

The shared memory routes (`/v1/memory/shared/...`) use the Memory API codes above
and these. Every shared answer sets `x-should-retry`.

| HTTP | `error.code` | When |
| - | - | - |
| 400 | `user_not_allowed` | The request carried `x-atlaso-user`. Shared facts belong to the project, not one app user. |
| 403 | `memory_scope_owner` | The key uses owner memory. Use a key set to Memory for each user of my app. |
| 403 | `shared_needs_project` | The per-user key has no project. Give the key a project on the **API keys** page. |
| 403 | `browser_token_not_allowed` | A browser token reached a shared route. The gateway's browser-token check refuses it before any shared check. |
| 403 | `shared_write_forbidden` | Any other credential that is not a server key reached the shared memory check. |
| 403 | `shared_fact_limit_reached` | The project already keeps 1,000 shared facts. Delete one before adding another. |
| 429 | `rate_limited` | More than 60 shared writes a minute for the project, or the key's memory rate. Honor `Retry-After`. |

The SDK refuses earlier, with `shared_needs_server_key` and nothing sent, when you
read `atlaso.shared` on a client made with a browser token.

## Runaway loops

Both codes return HTTP 429, `type: atlaso_loop_stop` and `x-should-retry: false`.
The call was not sent to the provider and was not billed (\$0.00).

| HTTP | `error.code` | Cause and fix |
| - | - | - |
| 429 | `repeated_request_stopped` | The same request reached ten attempts in ten minutes in one session, or for one user of your app when there is no session. The message names which. Fix the retry loop, wait for the window to fall below ten, or turn off Stop runaway loops for the key on the **API keys** page for intentional repeats. |
| 429 | `agent_loop_stopped` | The last five assistant tool-call turns used identical tools and arguments and received identical results. Applies to Chat Completions and Responses calls. Fix the agent loop, or turn off Stop runaway loops for the key on the **API keys** page for intentional repeats. |

A session is named by the `x-atlaso-session-id` header (at most 128 characters)
your app sends. Claude Code and Codex through the Gateway (coming soon) will use
those tools' own session IDs. A call with neither a session nor an app user ID is
never stopped as a repeat.

## Per-user daily limit

| HTTP | `error.code` | Fix |
| - | - | - |
| 429 | `user_daily_limit_reached` | Raise or clear the key's per-user limit on the **API keys** page, or wait until 00:00 UTC. Other users of your app are not affected. |

`429 user_daily_limit_reached` means one user of your app reached the daily
limit you set on this key. The answer includes `x-should-retry: false` so the
OpenAI SDK does not immediately retry it. Nothing was sent to the provider and
nothing was billed. Other users are unaffected. Raise or clear the per-user
limit on the **API keys** page, or wait until 00:00 UTC, the key daily limit's reset. The dashboard
shows the reset on your own clock. Calls without a user id are exempt from this
per-user setting; other key and account limits still apply.

## Provider policy refusals

These codes come back as HTTP 403 on a model call. When Atlaso checks a key as
you save it on the **Provider keys** page, the same codes come back as HTTP 422
with `reason: policy` (see [Saving a provider key](#saving-a-provider-key)).

| HTTP | `error.code` | Fix |
| - | - | - |
| 403 | `third_party_data_sharing_blocked` | Enable third-party sharing in Together Privacy settings (requires prompt storage), or choose a Together-served model. See [details](#third_party_data_sharing_blocked). |
| 403 | `groq_org_model_blocked` | Ask your Groq organisation administrator to allow the model. See [details](#groq_org_model_blocked). |
| 403 | `groq_project_model_blocked` | Allow the model in your Groq project settings or choose an allowed model. See [details](#groq_project_model_blocked). |
| 403 | `qwen_model_access_denied` | Add the model to the key's Qwen Cloud workspace, or use a key from the default workspace. See [details](#qwen_model_access_denied). |
| 403 | `qwen_workspace_access_denied` | Grant the key access to the Qwen workspace or choose the correct workspace. See [details](#qwen_workspace_access_denied). |
| 403 | `qwen_billing_required` | Complete your billing information in Qwen Cloud under Billing. See [details](#qwen_billing_required). |
| 403 | `qwen_model_unavailable` | Pick another Qwen model: this one is for Token Plan subscribers, retired, or free only. See [details](#qwen_model_unavailable). |
| 403 | `bedrock_account_not_enabled` | AWS has not opened Bedrock for the AWS account yet. Ask AWS Support or AWS Sales to enable Bedrock model access. See [details](#bedrock_account_not_enabled). |
| 403 | `bedrock_api_keys_blocked` | Ask your AWS administrator to allow Bedrock API keys under the account policy. See [details](#bedrock_api_keys_blocked). |
| 403 | `bedrock_access_denied` | Grant the saved Bedrock key permission to call the model. See [details](#bedrock_access_denied). |
| 403 | `azure_policy_blocked` | Ask your Azure administrator to review the policy blocking this request. See [details](#azure_policy_blocked). |
| 403 | `coreweave_inference_disabled` | Ask your CoreWeave administrator to enable the inference gateway. See [details](#coreweave_inference_disabled). |

## Microsoft Foundry answers

Microsoft Foundry's own answers on a model call, each named with its fix
instead of a generic provider error. None of them moves the call to another
provider.

| HTTP | `error.code` | Fix |
| - | - | - |
| 404 | `azure_deployment_required` | Deploy the model in your Foundry resource, or set its deployment name on the **Provider keys** page. See [details](#azure_deployment_required). |
| 403 | `azure_quota_required` | Request quota for the model in the Foundry portal under Manage, then Quota. See [details](#azure_quota_required). |
| 400 | `azure_content_filter` | Change the messages, or review the deployment's content filter. See [details](#azure_content_filter). |
| 410 | `azure_model_retired` | Choose a newer model. See [details](#azure_model_retired). |
| 401 | `azure_claude_key_refused` | Check the endpoint saved with your Foundry key, or paste the key again. See [details](#azure_claude_key_refused). |

## Saving a provider key

When you save a provider key on the **Provider keys** page, Atlaso checks it
with the provider first. A refusal is HTTP 422 with a different body from
model-call errors, for example:

```json theme={null}
{
  "error": "provider_key_refused",
  "message": "Anthropic did not accept this key. It may be wrong, revoked or expired. Check it in your Anthropic account, or create a new key, and paste it again.",
  "reason": "invalid"
}
```

`error` is the code, `message` says what to do, and `reason` (when present)
names the cause. A `doc_url` is added only for `reason: policy` and
`reason: no_credit`. Nothing is saved when a key is refused. The codes include
[wrong\_key\_shape](#wrong_key_shape), [provider\_key\_refused](#provider_key_refused),
[invalid\_endpoint](#invalid_endpoint), `endpoint_required` (an Azure key saved
without its resource endpoint), [region\_required](#region_required),
[project\_required](#project_required) and the
[provider policy codes](#provider-policy-refusals) above.

## Creating an API key

An account can hold up to 20 active Atlaso keys. Creating another on the
**API keys** page is refused with HTTP 409 and the code `key_cap_reached`.
Revoke a key you no longer need, then create the new one. See
[Revoke a key](https://docs.atlaso.ai/gateway/keys.md#revoke-a-key).

## Code reference

Each fixed code has a stable section below, including the runaway-loop guards
and per-user daily limit.

### account\_rate\_limited

What happened: Requests across your Atlaso account arrived too quickly.

How to fix: Reduce requests across all keys in your Atlaso account; honor `Retry-After`. No model call was made.

### agent\_loop\_stopped

What happened: The agent-loop guard stopped this call.

How to fix: Stop the agent loop and inspect its repeated steps or tool results. Correct the loop before starting it again.

### auth\_unavailable

What happened: Atlaso could not check the key or unlock its saved provider credential.

How to fix: Retry shortly. Atlaso could not check the key or unlock the saved credential; no model call was made.

### delete\_pending

What happened: A deletion for this app user (or one of their facts) began and has not finished yet.

How to fix: Retry the same request after `Retry-After`; retrying is safe.

### fact\_rejected

What happened: Memory could not save the submitted fact.

How to fix: Submit one short, plain statement that can be saved.

### gateway\_not\_enabled

What happened: Gateway access is not enabled for this account.

How to fix: Gateway access is not enabled on this account. Contact support; retrying does not enable it.

### insufficient\_quota

What happened: Your provider account is out of credit, overdue, suspended for a low balance, or limited to a free tier that is used up.

How to fix: Add credit in the provider's billing console, or turn off “free tier only” in Model Studio when the Qwen message names that setting, then retry.

SiliconFlow answers HTTP 402 “Sorry, your account balance is insufficient”, which Atlaso returns as this code (HTTP 429). Add credit in your SiliconFlow account at cloud.siliconflow\.com, then retry. Atlaso treats no other SiliconFlow 402 as out of credit.

### internal\_error

What happened: Atlaso could not finish handling the request.

How to fix: Retry cautiously. If repeated, contact support with `x-request-id`.

### invalid\_after

What happened: The pagination cursor does not belong to this list or usage query.

How to fix: For memory facts, use a fact ID from the same user's list. For app-user usage, use the opaque `next` cursor from the preceding page with the same key, dates and app-user filter.

### invalid\_api\_key

What happened: Your Atlaso key is missing, invalid, expired or revoked.

How to fix: Send an active, unexpired Atlaso key from the **API keys** page as `Authorization: Bearer`. Remove any `x-atlaso-key` header.

### invalid\_body

What happened: The body is not an accepted JSON request object.

How to fix: Send one JSON object in the format of the route you called. On `/v1/chat/completions` and `/v1/responses` it must also have no duplicate keys or non-finite numbers and be nested at most 128 levels deep, and it may be uncompressed or sent with `Content-Encoding: gzip` (or `x-gzip`) or `deflate`; any other encoding gets this error. A compressed body that expands past the size limit gets [request\_too\_large](#request_too_large) instead.

### invalid\_fact\_id

What happened: The supplied fact ID is not a valid UUID.

How to fix: Use the UUID returned by add or list.

### invalid\_idempotency\_key

What happened: The `Idempotency-Key` header on a memory add or batch request is malformed or repeated.

How to fix: Send one `Idempotency-Key` header containing 1 to 255 printable ASCII characters. Reuse the same header value when retrying the same request.

### idempotency\_in\_progress

What happened: **409**. Another add or batch request with the same `Idempotency-Key`
for the same app user is still being saved, for example a retry sent while the
first attempt is still running. After a crash, an unfinished save is held for up
to 60 seconds before a resend can take it over. The reply has `Retry-After: 1` and
nothing new was saved by this request.

How to fix: Wait for `Retry-After`, then resend the same text with the same key.
The SDK does this itself for per-user adds. Do not switch to a new key: that can
save the fact twice.

### idempotency\_key\_reused

What happened: **409**, `param: Idempotency-Key`. The key was already used in the
last 24 hours for a different request (different text, or an add versus a batch)
for the same app user. Nothing was saved. The reply carries `x-should-retry: false`.

How to fix: Make a new key for each new logical add or batch, and reuse a key
only to resend exactly the same request. Retrying with this key cannot succeed.

### invalid\_limit

What happened: The requested page size is not a supported whole number.

How to fix: Set `limit` to a whole number from 1 through 100 for list, or 1 through 20 for search.

### invalid\_query

What happened: The search query is empty, too long, not text, or contains a NUL character.

How to fix: Send 1 to 2,000 characters in `query`, with no NUL.

### invalid\_request\_error

What happened: A request field or conversation sequence is invalid.

How to fix: Fix the field in `param`, such as malformed tool-call arguments or an orphan tool result.

### invalid\_text

What happened: The fact text exceeds the allowed size or contains a NUL character.

How to fix: Keep `text` within 4,000 characters and omit NUL characters.

### key\_daily\_limit

What happened: This Atlaso key reached its daily spending limit.

How to fix: Raise the key's daily limit on the **API keys** page or wait for the next UTC day. Honor `Retry-After`.

### memory\_scope\_owner

What happened: This key uses your own memory, and the request named an app user (the `x-atlaso-user` header, or a `user` field in a Memory API body; `param` names which). Nothing was read or written. On a chat completions, Responses or Messages call (streaming or not) with the key's memory on, the call is refused before memory and before the provider, so your own memories never reach an app user's reply; no model call was made and it costs \$0.00. A browser token also needs a key with memory for each user of your app.

How to fix: Use `atlaso.memory` without a user id for your own memories (or send no `x-atlaso-user` header and no `user` field). For your app's users, use a key set to Memory for each user of my app. A key with memory Off accepts the user id as a usage label.

### memory\_scope\_per\_user

What happened: This key keeps memory for each user of your app, and the request named no user.

How to fix: Use `atlaso.for_user(id).memory`, or send the user's id in the `x-atlaso-user` header.

### memory\_off

What happened: Memory is off for this key, so the Memory API cannot read or change your memories with it.

How to fix: Set the key's memory to Use only or Use and learn on the **API keys** page.

### owner\_erase\_dashboard\_only

What happened: A key cannot delete all of your own memories at once. Nothing was deleted.

How to fix: Delete facts one at a time with the Memory API, or use Delete all memories on the dashboard.

### fact\_not\_found

What happened: No fact with this id is in the memory this key can reach. Facts of another project and shared facts are not reachable.

How to fix: List the facts with `GET /v1/memory/facts` and use an id from the list.

### forget\_pending

What happened: The fact was deleted, but cleanup after the delete has not finished yet.

How to fix: Retry the same request after `Retry-After` seconds. Retrying is safe and finishes the delete.

### fact\_replaced

An add replay with the same idempotency key can return 409 after the saved fact
was edited. It was **saved, then replaced; continue with `replaced_by`**. A string
is the current fact id; `null` means the replacement chain was deleted. Keep
the original idempotency key for that logical add and do not create a fresh one.

The same 409, with `replaced_by` `null`, comes back when the saved fact was
deleted within the key's 24 hours: on its own, with its app user, or with all
of the project's shared facts. Nothing is saved. To add the fact again on
purpose, send it with a new idempotency key.

### memory\_unavailable

What happened: On a model call, the key requires memory and memory could not be reached, so no model call was made. On the Memory API, memory did not answer in time or its answer could not be read.

How to fix: On a model call, retry, or change the key's "If memory can't be reached" setting on the **API keys** page before calling without memory. On the Memory API, retry after `Retry-After`. A delete is safe to send again. An add may still have finished: resend the same text with its original idempotency key within 24 hours. A new key can create a duplicate.

### method\_not\_allowed

What happened: The route does not accept this HTTP method.

How to fix: Use the HTTP method listed for that route under [not\_found](#not_found). The message lists every route with its method.

### missing\_text

What happened: The fact to add has no non-empty text.

How to fix: Send non-empty `text` when adding a fact.

### missing\_query

What happened: A memory search request has no `query` field.

How to fix: Send a non-empty `query` in the JSON body.

### missing\_user\_id

What happened: The Memory API request has no app user ID.

How to fix: Send the app user's ID in the `x-atlaso-user` header, from your app's server. A `user` body field is not read as the ID.

### app\_user\_limit\_reached

What happened: Adding a fact would create memory for a new app user, and this key (its project, or the key itself when it has no project) already keeps memory for its maximum number of users (10,000 by default). Nothing was saved.

How to fix: Delete users you no longer need with `DELETE /v1/memory/user`, or contact Atlaso support to raise the limit. Existing users are not affected.

### key\_has\_app\_users

**409**, `param: project` or `param: memory_scope`. What happened: You asked to change the project or the **Memory for** setting of a key set to **Each user of my app**, while users of your app still have memory under that key (its project, or the key itself when it has no project). After the change the key could no longer reach that memory, so nothing was changed.

How to fix: Delete those users first (`DELETE /v1/memory/user`, or the Memory page), then change the key. Or keep this key and create a new key with the settings you want. A Memory page lookup by key still reaches users a key kept before a change.

### model\_not\_available

What happened: The requested model is unknown or unavailable to your saved key.

How to fix: Use an exact ID from `/v1/models`. A provider can also report this when your saved key cannot find the model.

SiliconFlow answers HTTP 403 with code 30003 ("Model disabled.") for a model it has retired or switched off; Atlaso returns that as this code (HTTP 404). Choose a current SiliconFlow model from `/v1/models`.

### monthly\_budget\_reached

What happened: Your account reached its monthly budget with the optional stop enabled.

How to fix: Raise the account budget, turn off its optional stop, or wait for the next budget month. No model call was made.

### not\_configured

What happened: The service has not configured memory for app users.

How to fix: App-user memory is not configured on the service. Contact support.

### not\_found

What happened: The requested route does not exist.

How to fix: Check the URL. The public routes are `POST /v1/chat/completions`, `POST /v1/responses`, `POST /v1/messages`, `GET /v1/models` and the [Memory API](https://docs.atlaso.ai/gateway/memory-api.md): `GET` and `POST /v1/memory/facts`, `POST /v1/memory/facts/batch`, `POST /v1/memory/search`, `DELETE /v1/memory/facts/{id}`, `PATCH /v1/memory/facts/{id}` and `DELETE /v1/memory/user`, plus `GET /v1/calls/{call_id}` and `GET /v1/usage/app-users`, `POST` and `DELETE /v1/browser-tokens`, and `DELETE /v1/browser-tokens/{id}`. The message lists them too. `GET /v1/models/{id}` is not served, so an SDK's model retrieve call gets this error; read the model from the `GET /v1/models` list instead.

### provider\_bad\_request

What happened: The provider refused the request and Atlaso included its usable error text.

How to fix: Change the request field named in the provider's message, then retry.

### provider\_billing\_error

What happened: The provider refused the call for a billing reason, including a plan key, an expired enterprise package, or a credit or spending limit.

How to fix: Check the provider's plan and credit in its console, or create the Standard API or pay-as-you-go key named in the message and paste it on the **Provider keys** page.

Baseten answers HTTP 402 for a billing or payment problem, such as credit that has run out, which Atlaso returns as this code (HTTP 402). Fix it in your Baseten billing and usage settings, then retry.

### provider\_endpoint\_missing

What happened: Your saved provider key is missing endpoint data it needs, such as an Azure resource endpoint, a Qwen region Atlaso serves, a Bedrock or Azure data location this model supports, or the Google Cloud project of a Google Cloud (Vertex AI) key. The message names which. No model call was made.

How to fix: Add or correct that data on the **Provider keys** page, or use Check again there.

### provider\_error

What happened: The provider returned an error, possibly after a stream had already started.

How to fix: Read the sanitized message and `param`, then correct the request or check the provider’s status. This section also covers unrecognized provider-specific codes, which Atlaso preserves. Check whether work or tool calls completed before retrying.

### provider\_invalid\_request

What happened: The provider refused the request as invalid, and the message quotes its reason. A conflict keeps HTTP 409. MiniMax can also send this inside an HTTP 200 reply.

How to fix: Correct the field the message or `param` names, then retry.

### provider\_key\_disabled

What happened: Your saved provider credential is switched off in Atlaso.

How to fix: Turn on your saved provider key on the **Provider keys** page, then try again.

### provider\_key\_missing

What happened: No enabled credential is saved for the requested provider.

How to fix: Add and enable the model provider's key on the **Provider keys** page.

### provider\_key\_rejected

What happened: The provider rejected your saved provider key.

How to fix: Check or create the API key in the provider's console, then replace it on the **Provider keys** page.

### provider\_permission\_denied

What happened: Your saved provider key cannot access this model.

How to fix: Grant the key access in the provider's console or choose an accessible model in the request's `model` field.

For Baseten, the usual causes are a key without the Call Model APIs permission, or a key made from another model's page, which can only call that model; a team key with the Call Model APIs permission calls every model.

### provider\_rate\_limit

What happened: The provider rate-limited your saved key.

How to fix: Retry after the indicated delay or check the request and token limits in the provider's console.

### provider\_reply\_failed

What happened: The provider stopped the reply without a usable answer, including MiniMax refusing sensitive input or output.

How to fix: Change the request's input or `messages` when the message says the content was sensitive, and check usage in the provider's console before retrying because the call may be billed.

### provider\_spend\_limit

What happened: Your provider account (for example Anthropic, Google or xAI) reached its spending limit.

How to fix: Raise the limit in that provider's console or wait for it to reset; retrying now will not help.

### provider\_timeout

What happened: The provider did not answer within the allowed time.

How to fix: Check provider usage before retrying: a timeout does not prove the call was unbilled.

### provider\_unavailable

What happened: The provider is unavailable or returned a server error.

How to fix: Check usage in the provider's console before retrying, because the request may have reached the provider.

### provider\_workspace\_not\_found

What happened: The provider could not find the workspace saved with your key.

How to fix: Correct the Workspace ID saved with your provider key on the **Provider keys** page.

### provider\_workspace\_required

What happened: Your provider key needs a workspace ID.

How to fix: Add the required Workspace ID on the **Provider keys** page.

### rate\_limited

What happened: Requests on this Atlaso key arrived too quickly.

How to fix: Slow requests on this Atlaso key and honor `Retry-After`. No model call was made.

### repeated\_request\_stopped

What happened: The repeated-request guard stopped this call.

How to fix: Check your retry logic and stop resending the same request. Follow the response message before starting another call.

### search\_unavailable

What happened: Memory search did not finish within its deadline or could not reach memory.

How to fix: Retry after `Retry-After: 1`.

### request\_too\_large

What happened: The request exceeds the gateway's or the provider's body limit.

How to fix: Shorten messages or images. The default body ceiling is 32 MiB, measured after a gzip or deflate body is decompressed; provider limits can be lower. Memory API bodies are limited to 64 KiB.

Baseten takes request bodies of at most 16 MB and answers HTTP 413 above that, which Atlaso returns as this code.

### unavailable

What happened: The memory service is temporarily unavailable.

How to fix: Retry after the indicated delay.

### unknown\_field

What happened: A JSON field is not supported on this route.

How to fix: Remove the unsupported JSON field.

### unknown\_parameter

What happened: A query parameter or provider request field is not supported.

How to fix: Remove the field named by `param` or the message. Memory list queries accept only `limit` and `after`.

### user\_not\_allowed

What happened: A shared memory route received `x-atlaso-user`. Shared facts belong to the project, not one app user.

How to fix: Remove the header from this request. Use the per-user memory API for a fact about one user.

### shared\_needs\_project

What happened: This key has no project, so it has no shared memory store.

How to fix: Use a per-user server key assigned to a project.

### shared\_write\_forbidden

What happened: The shared memory check received a credential that is not a server API key. Shared facts can be read and changed only with a per-user server key that has a project.

How to fix: Send the request from your server with its project key.

Which code you get depends on where the request stops:

| Code | When |
| - | - |
| `shared_needs_server_key` | Raised by the SDK before sending, when you read `atlaso.shared` on a client made with a browser token. Nothing is sent. |
| [`browser_token_not_allowed`](#browser_token_not_allowed) | HTTP 403 from the gateway when a browser token reaches a shared route. Its browser-token check refuses it before any shared check. |
| `shared_write_forbidden` | HTTP 403 for any other credential that is not a server key and reaches the shared memory check. |

### shared\_fact\_limit\_reached

What happened: This project has reached its shared fact limit.

How to fix: Delete an unused shared fact before adding another.

### unsupported\_parameter

Claude models have different thinking controls. `reasoning_effort: "none"` and
`reasoning.enabled: false` use the model's documented off setting. Fable 5/5.1,
Mythos 5/5.1, Mythos Preview and Opus 5.5 cannot turn thinking off. Remove the
named field or choose a model with an off switch. Opus 5 and Haiku 5.5 turn
thinking off only at effort `high` or lower. Sonnet 5.5 uses `between_tools`,
which turns off up-front thinking at effort `high` or below.
See [Claude thinking defaults](https://docs.atlaso.ai/gateway/models.md#claude-thinking-defaults) and
[Anthropic's thinking guide](https://platform.claude.com/docs/en/build-with-claude/thinking#turning-thinking-off).

What happened: The model does not accept the setting, or Atlaso cannot confirm or map it through this entrance.

How to fix: Change or remove the request field named in `param`, using the accepted values in the message, then retry.

On a key with a daily spending limit, a monthly budget, or a per-user daily limit
(when the call names an app user), Atlaso refuses a call it cannot price, because
the limit could not count its cost. `param` is `model` when the model's token
prices are unknown, or the tool field when a tool in the request has no price.
Nothing is sent to the provider. Choose a model with stated prices, remove the
tool, or use a key with no spending limit. Provider fees for built-in tools are
not included in Atlaso's cost.

### user\_daily\_limit\_reached

What happened: This app user reached the configured daily limit.

How to fix: Check the app user’s daily limit and usage. Raise the configured limit or wait for its reset before retrying.

### user\_id\_conflict

What happened: The key keeps memory for each user of your app and reads the user ID only from the `x-atlaso-user` header. The field named in `param` (`safety_identifier` or `user`) names a different user, so Atlaso cannot tell which user the call is for. No model call was made.

How to fix: Set `x-atlaso-user` on your server from the signed-in user, and either remove the body field or send the same ID in it. Never let a client choose these fields for a per-user key, and never put the app key in a browser or on a device.

### user\_id\_not\_accepted

What happened: The user ID could not be accepted. On a key with memory for each
user of your app, that ID names whose memory to use. On a key with a daily limit
for each app user, a call that names a user whose ID is not accepted is refused
too: the limit could not be applied, so nothing is sent to the provider.

How to fix: Use one printable, non-secret ID of at most 256 characters. Do not repeat the header.

### user\_id\_required

What happened: A per-user key requires memory, but the chat call has no app user ID.

How to fix: This per-user key requires memory: send the app user's ID in the `x-atlaso-user` header from your server. `safety_identifier` and `user` are not read as the ID for this key. No model call was made.

### model\_kind\_not\_supported

`model_kind_not_supported` (HTTP 400, `param: "model"`) means that the model is
inventoried but its task kind is not available through Atlaso yet. This applies
to both Chat Completions and Responses. Choose a chat model from `GET /v1/models`,
or use the provider's API for image, embedding, audio, rerank, or another
unsupported kind. Nothing was sent to the provider; the cost is \$0.00.

### wrong\_key\_shape

What happened: The pasted key is a plan or subscription key, an Atlaso key, or a recognized key for another provider.

How to fix: On the **Provider keys** page, paste the API key from the selected provider's console, using a pay-as-you-go key from Model Studio or Qwen Cloud for Qwen and from MiniMax API Platform for MiniMax.

### provider\_key\_refused

HTTP 422 when you save a key on the **Provider keys** page. The `reason` field says which case applies.

**`reason: invalid`**. What happened: The provider did not accept the key because it may be wrong, revoked or expired, or no Qwen region Atlaso tried accepted it.

How to fix: Check or create the key in the provider's console and paste it again on the **Provider keys** page, sending the key's `region` for Qwen if needed.

**`reason: no_credit` or `reason: billing`**. What happened: The provider says this account is out of credit, over its spending limit, has \$0.00 of prepaid credit, needs its project verified, or has billing turned off.

How to fix: Add credit or review billing and spending limits in the provider's
billing console, then paste the key again or use Check again. A `no_credit`
reason means replacing the same valid key will not fix the balance.

Documented account-credit answers include Novita's `NOT_ENOUGH_BALANCE` (403),
`BILLING_BALANCE_NOT_ENOUGH`, `BALANCE_NOT_ENOUGH` and
`EXPIRED_OR_BALANCE_NOT_ENOUGH` (400); Together, Fireworks, CoreWeave and Baseten
402; Z.ai 429/1113; Qwen `Arrearage`, `isv.OUT_OF_SERVICE`,
`PrepaidBillOverdue` and `PostpaidBillOverdue`; MiniMax 1008 or 2053; and
SiliconFlow's 402 "your account balance is insufficient", which maps to
`insufficient_quota`. Chat errors link to `insufficient_quota` or
`provider_billing_error` below. Atlaso has no account-credit rule for Groq or
DigitalOcean.

**`reason: no_permission`**. What happened: The provider refused the key's access. For most providers the key works but cannot list models; for Google the key may be restricted or its project may have a billing problem; for xAI check the key's model permissions and your team's credit.

For Baseten, Atlaso checks a key with one short call to GPT-OSS 120B, so a key made from another model's page, which can only call that model, is refused with `invalid` or `no_permission`. Use a team key with the Call Model APIs permission.

How to fix: Follow the message, use a key with model access from the provider's console, and paste it again on the **Provider keys** page.

**`reason: blocked`**. What happened: Google blocked the key because it was reported as leaked.

How to fix: Create a new key in Google AI Studio and paste that one.

### invalid\_endpoint

HTTP 422 when you save a key with endpoint data the provider does not take or allow. The `reason` field names the field. A provider that takes no endpoint data at all answers `invalid_request` instead; remove the field.

**`reason: workspace_scope`**. What happened: The workspace scope is not one this provider accepts, or Atlaso reads it from the provider when the key is pasted.

How to fix: For Qwen set `workspace_scope` to one listed in the message. For xAI remove the field and use Check again on the **Provider keys** page. For a provider with no workspace scope, remove it.

For xAI, `reason=workspace_scope` means Zero Data Retention is read from xAI,
not typed into Atlaso. Check again re-reads `GET /v1/me`. If that read fails
or returns an unknown setting, the key stays working and Zero Data Retention
shows "Not read yet". Use Check again to try the read again. This informational
outcome adds no error code and never blocks a call.

**`reason: region`**. What happened: The supplied region is not one this provider serves, or this provider's keys have no region setting.

How to fix: Set `region` to one listed in the message, or remove the `region` field when the message says this provider's keys have no region.

**`reason: endpoint`**. What happened: This provider's keys need no caller-supplied endpoint, or the endpoint is not a valid resource endpoint for this provider.

How to fix: Remove the `endpoint` field, or correct it as the message says, and save the key again on the **Provider keys** page.

**`reason: deployment_map`**. What happened: This provider's keys need no deployment names, or the deployment names are not valid.

How to fix: Remove or correct the `deployment_map` field as the message says, and save the key again on the **Provider keys** page.

**`reason: data_location`**. What happened: The supplied data location is not one this provider accepts.

How to fix: Set `data_location` to one of the values the message lists (`anywhere` is always accepted), or remove the field.

### fact\_forgotten

What happened: Learning tried to save a fact protected by a previous deletion. The Memory API never returns this code: an add through the Memory API can save the fact again once the deletion has finished.

How to fix: Leave the fact deleted, or explicitly add it with the Memory API if you want it back. Automatic learning cannot restore it.

### region\_required

HTTP 422 when you save an Amazon Bedrock key on the **Provider keys** page and
Atlaso could not infer the AWS region where the key was created. Choose that
AWS region on the **Provider keys** page, then paste the key again. The
`region` reason identifies the missing key setting. This does not change where
requests run.

### project\_required

HTTP 422 when you save a Google Cloud (Vertex AI) key on the **Provider keys**
page and Atlaso could not find which Google Cloud project the key belongs to.
Atlaso reads the project from one free call to Google when you paste the key.
If Google's answer does not name it, type the key's Project ID (shown in the
project picker at the top of the Google Cloud console), then paste the key
again. The `project` reason identifies the missing key setting. Nothing is
saved until the key works in that project. Calls always run in Google's global
location.

### price\_case

This is a reason an Activity record gives for a call it could not price. It is
never returned as an error to a request. It means the call's workspace, mode or
prompt length does not match a published price case. The call record keeps the
cost unknown rather than using another scope's price.

### price\_case\_unknown

This is a reason an Activity record gives for a call it could not price. It is
never returned as an error to a request. It means at least one matching price
case has an unknown price for tokens this call used, so Atlaso cannot establish
the highest rate. To keep calls priced, choose a model with stated prices for
that usage. On a key with a spending limit, such a call is refused with
[unsupported\_parameter](#unsupported_parameter).

### invalid\_price\_context

This is an internal check on the cost record Atlaso keeps for each call. No
request you send returns it. If you see it, contact support with the
response's `x-request-id`.

### cache\_retention\_not\_available

Atlaso refused a cache lifetime setting on an OpenAI model before calling the
provider. The cost is \$0.00. The error names the field to change.

* `prompt_cache_retention: "24h"` is always refused. `"in_memory"` is accepted
  only on older models; on newer ones the message asks you to remove the field.
* A `ttl` goes in `prompt_cache_options` or a `prompt_cache_breakpoint`, and
  accepts `"30m"` or `"12h"`. On OpenAI's own host, a `ttl` works only on a
  model with a verified 12-hour cache write price in Atlaso's catalog.
* `"12h"` also requires `/v1/responses`, and is refused when another host
  serves the OpenAI model. Use `"30m"` or remove the field.

### groq\_org\_model\_blocked

Your Groq organisation blocks this model. Ask an organisation admin to allow it in Model Permissions, then try again, or choose an allowed model.

[Provider documentation](https://console.groq.com/docs/model-permissions).

### groq\_project\_model\_blocked

Your Groq project blocks this model. Ask a project admin to allow it in Model Permissions. Organisation restrictions still apply. Then try again, or choose an allowed model.

[Provider documentation](https://console.groq.com/docs/model-permissions).

### qwen\_model\_access\_denied

Your Qwen key's workspace is not allowed to call this model. Ask an admin of your Qwen Cloud account to add the model to that workspace (Settings, then Workspaces, Edit, Model Permissions), then try again. A key from the default workspace can call every model.

[Provider documentation](https://docs.qwencloud.com/developer-guides/administration/workspace).

### qwen\_workspace\_access\_denied

Your Qwen key cannot access this workspace. Use an API key from the workspace that owns the model, or ask an administrator to grant workspace access, then try again.

[Provider documentation](https://www.alibabacloud.com/help/en/model-studio/error-code).

### qwen\_billing\_required

Your Qwen Cloud account has no billing information yet, so Alibaba will not run this model. In Qwen Cloud, open Billing, complete your billing information and add a payment method, then try again.

Alibaba answers HTTP 403 `AccessDenied.Unpurchased` ("Access to model denied. Make sure you are eligible for using the model."). When you save a key, the same answer comes back as HTTP 422 with `reason: policy`, and nothing is saved.

[Provider documentation](https://docs.qwencloud.com/api-reference/preparation/error-messages).

### qwen\_model\_unavailable

Alibaba refused this model for your Qwen key. The model may be kept for Qwen Token Plan subscribers, retired, or free only with its free quota used up. Pick another Qwen model on the Models page, then try again.

Alibaba answers HTTP 403 `AccessDenied` (or `access_denied`) with the message "Access denied." Atlaso uses this code only for that exact answer.

[Provider documentation](https://docs.qwencloud.com/api-reference/preparation/error-messages).

### bedrock\_account\_not\_enabled

Your key is fine, but AWS has not opened Amazon Bedrock for this AWS account yet (AWS Error 002). AWS limits Bedrock on some new accounts until they have a usage and billing history. Ask AWS Support or AWS Sales to enable Bedrock model access for the account, then press Check again.

AWS answers every Bedrock call from such an account with HTTP 400 and "Error 002: Access to Bedrock models is not allowed for this account". Atlaso returns HTTP 403 with this code, so it is never mistaken for a bad request or a bad key. It applies to every Bedrock model and clears only when AWS enables the account.

[Provider documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html).

### bedrock\_api\_keys\_blocked

Your AWS organisation's policy blocks Bedrock API keys (bedrock:CallWithBearerToken). An AWS admin must allow this action for this account, then press Check again.

[Provider documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/api-keys-permissions.html).

### bedrock\_access\_denied

Amazon Bedrock denied access. Ask an AWS admin to check the account IAM policies, organisation SCPs and model access in this region, then press Check again or choose an allowed model.

[Provider documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html).

### azure\_policy\_blocked

Azure Policy blocks this model deployment. Ask an Azure administrator to review the policy assignment and allow the model and publisher, or choose a deployment permitted by the policy.

[Provider documentation](https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-policy-requestdisallowedbypolicy).

### azure\_deployment\_required

Microsoft Foundry has no deployment of this model in your resource. Deploy the model in the Microsoft Foundry portal under Models, then Deployments, and try again. Atlaso calls the deployment named after the model. If yours has another name, copy it from the deployments list into Deployment names on the Provider keys page. A new deployment can take up to five minutes to answer.

Microsoft Foundry answers a model your resource has no deployment of with HTTP 400 "does not support deploymentless inference", and a deployment name it cannot find with HTTP 404 `DeploymentNotFound`. Atlaso returns HTTP 404 with this code for both. OpenAI models in a West US 3 resource can also be called without a deployment (Microsoft's instant access preview), which needs quota of its own.

[Provider documentation](https://learn.microsoft.com/en-us/azure/foundry/foundry-models/concepts/endpoints).

### azure\_quota\_required

Your Azure subscription has no quota for this model yet. New subscriptions start with little or no quota, and some models have none until you ask for it. See your quota and request more in the Microsoft Foundry portal under Manage, then Quota, and try again. A quota change can take up to 15 minutes to apply. If Azure says the quota is still being set up, wait a few minutes and try again.

Atlaso returns HTTP 403 with this code for Microsoft's "Insufficient quota available for instant inference" (HTTP 400), "Instant inference quota is still being initialized" (HTTP 403) and `InsufficientQuota` answers, so they are never mistaken for a bad request or a bad key. Microsoft assigns quota per subscription, region and model, and its lowest tier cannot request more.

[Provider documentation](https://learn.microsoft.com/en-us/azure/foundry/how-to/quota).

### azure\_content\_filter

Microsoft Foundry's content filter blocked this request. Change the messages and try again, or review the deployment's content filter in the Microsoft Foundry portal.

Microsoft answers a blocked prompt with HTTP 400, code `content_filter` and inner code `ResponsibleAIPolicyViolation`; an MAI stream ends with `SafetyBlockedError`. A reply blocked after it started arrives as a normal answer whose `finish_reason` is `content_filter`. Atlaso never sends a filtered call to another provider.

[Provider documentation](https://learn.microsoft.com/en-us/rest/api/microsoft-foundry/azureopenai/chat).

### azure\_model\_retired

Microsoft retired this model, so Microsoft Foundry no longer answers calls to it. Choose a newer model. Microsoft's model retirement schedule names its replacement.

Microsoft answers every call to a retired model with HTTP 410 Gone, and Atlaso returns HTTP 410 with this code.

[Provider documentation](https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule).

### azure\_claude\_key\_refused

Microsoft Foundry refused your saved key on its Claude endpoint (HTTP 401). Atlaso did not mark the key as rejected, so your other Foundry models keep working. Check that the endpoint saved with the key is your Foundry resource's (ending in .services.ai.azure.com), then try again. If you replaced the key in Azure, paste the new one or press Check again on the Provider keys page.

Microsoft Foundry's Claude endpoint answered HTTP 401 ("Access denied due to invalid subscription key or wrong API endpoint"). The same endpoint once answered 401 to a valid key sent the wrong way, so a 401 there never changes the saved key's state; the key check on Foundry's model list decides that.

[Provider documentation](https://learn.microsoft.com/en-us/azure/foundry/foundry-models/how-to/use-foundry-models-claude).

### coreweave\_inference\_disabled

The CoreWeave inference gateway is not enabled for your organisation. Ask an organisation or instance administrator to enable it, or contact CoreWeave Forge support, then press Check again.

[Provider documentation](https://docs.coreweave.com/support/inference/articles/api-error-code-403-the-inference-gateway).

### third\_party\_data\_sharing\_blocked

Your Together AI organisation has third-party data sharing turned off, and this model is served by a third party. An admin can turn it on in Together's Privacy settings ([https://api.together.ai/settings/privacy](https://api.together.ai/settings/privacy)), which requires prompt storage, or you can pick a model Together serves itself.

HTTP 403. Non-retryable until the organisation setting or chosen model changes.

### provider\_busy

HTTP 503, retryable. The provider is temporarily busy or overloaded. Try again shortly. Anthropic's overloaded answer (HTTP 529, `overloaded_error`) is mapped here. Z.ai business code 1305 is mapped here even when it appears inside a successful HTTP envelope. See [Z.ai's error reference](https://docs.z.ai/api-reference/api-code). SiliconFlow's HTTP 503 with code 50505 ("Model service overloaded.") is mapped here too, and so is Baseten's HTTP 529 (overloaded), with its Retry-After header when Baseten sends a number of seconds.

### provider\_invalid\_response

HTTP 502. The provider answered, but its body could not be used as a reply. The message names why: unreadable JSON, missing choices or assistant message, or an unrecognized error object. Check provider usage before retrying; a malformed reply does not prove the call was free.

### call\_not\_ready

HTTP 404. The call record is not available to this key yet, and the call ID is less than two minutes old. Call records can arrive shortly after the model response.

How to fix: Retry `GET /v1/calls/{call_id}` after `Retry-After: 2`. This response depends only on the ID's age and does not confirm that a record exists.

### call\_not\_found

HTTP 404. The call ID is invalid, outside the retained window, or unavailable within this key's account, project and optional app-user filter.

How to fix: Check the call ID and use a key authorized for the call. When sending `x-atlaso-user`, use the same user and key namespace as the call. This response has `x-should-retry: false`.

### invalid\_date

HTTP 400. An app-user usage date is not a valid UTC calendar date in `YYYY-MM-DD` form.

How to fix: Correct `start` or `end` and retry the corrected request.

### invalid\_window

HTTP 400. The app-user usage date range is reversed, exceeds 92 inclusive days, starts before the retained call window, or ends after today in UTC.

How to fix: Choose an inclusive UTC range of at most 92 days within retained history. Omit both dates for the last 30 days.

### usage\_unavailable

HTTP 503. The app-user usage read timed out or its backend answer could not be read.

How to fix: Retry `GET /v1/usage/app-users` after `Retry-After: 2`. This read changes no data.

### browser\_token\_invalid

**401.** The browser token is unknown, expired, revoked, or no longer valid for its parent key or app user. Ask your server for a new token. Retrying the same token will not help. Atlaso returns `x-should-retry: false`.

### browser\_token\_user\_fixed

**400.** A browser token already identifies one app user. Remove `x-atlaso-user` and, on memory requests, the body field `user`. Mint a separate token on your server for a different user.

### browser\_token\_model\_not\_allowed

**403.** The requested `model` is outside the token's model list. Use an exact model id allowed by the token, or ask your server for a token with the required model. No provider request was sent.

### browser\_token\_read\_only

**403.** This token does not permit the memory operation. Read-only tokens can list facts; `read_write` tokens can also add and delete individual facts. Tokens with memory off cannot read or write facts. Erasing a user's entire memory requires a server API key.

### browser\_token\_not\_allowed

**403.** This route does not accept browser tokens. Minting, revoking, key management, erasing a user's memory, and every shared memory route (`/v1/memory/shared/...`) require a server API key. Keep that key on your server.

### invalid\_ttl

**400.** `ttl_seconds` must be an integer from 60 through 3600. The default is 900 seconds. Correct the field before retrying.

### invalid\_limits

**400.** Check the field named by `param`. `limits.models` accepts 1 through 20 catalog model ids or `null`. `limits.daily_spend_usd` accepts USD 0.01 through USD 10,000.00, or explicit `null`; the default is USD 1.00 per app user per UTC day. The parent key's lower per-user cap still applies. `limits.memory` is `read_only` by default, or `read_write` or `off`.

## Interrupted call records

The `interrupted` and `in_progress` call outcomes are not used today. See
[Calls still running](https://docs.atlaso.ai/gateway/sdk-routes.md#calls-still-running).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.