Troubleshooting
Every error code the API returns, what it means and how to fix it, from a missing key to a level whose allowance ran out this month.
Errors from the API come in the envelope of the wire you called. Chat completions, Responses, embeddings, models, memory, entities and usage use OpenAI's, {"error": {"message", "type", "param", "code"}}, where type is the broad class and code the specific reason; /v1/messages uses Anthropic's, with a type and no code. Both are described in the API reference. Replies from the answering and memory endpoints carry an x-request-id header: quote it when you ask for help.
These are the codes the API returns, what each means and what to do about it:
| Code and type | Status | Meaning | What to do |
|---|---|---|---|
invalid_invalid_ | 401 | The key is missing, malformed, revoked or expired, or no longer belongs to the organisation. An expired key's message names its expiry date. | Send |
subscription_invalid_ | 402 | The organisation behind the key has no active Memtro subscription. | An owner starts one on Dashboard → Organisation → Billing. |
model_invalid_ | 404 | The model id is not one Memtro knows, or a | Use an id from Model ids; |
provider_invalid_ | 400 | There is no key for the provider the model needs, no embedding-capable key, no model to read an import with, or an OpenAI-compatible endpoint has no base URL. | Add a key under Dashboard → Providers. |
invalid_invalid_ | 400 | An OpenAI-compatible endpoint's stored base URL cannot be used: it cannot be read as a URL, is not | Correct the base URL under Dashboard → Providers. See OpenAI-compatible endpoints. |
provider_invalid_ | 400 | A model endpoint's host may not be used: an OpenAI-compatible endpoint's host is not approved for the organisation, is private or internal, does not resolve, or answered with a redirect; or another provider's base URL override names a host other than its own. Returned whether the endpoint was refused before the request was sent or during it. | An owner or admin approves the host under Organisation → Providers → Custom model hosts; a redirect's target goes in the base URL instead. See OpenAI-compatible endpoints. |
routing_invalid_ | 400 |
| Add a provider key, or set a ladder under Dashboard → Routing. |
unsupported_invalid_ | 400 | A parameter this endpoint cannot honour ( | Drop or correct the parameter the message names. |
invalid_invalid_ | 400 |
| Send |
not_invalid_ | 404 | No such memory or entity, or not one this key can read: another organisation's record looks the same as a deleted one. | Check the id, and that the key's scope reaches it. |
read_permission_ | 403 | The key was issued read only, and the request writes. | Use a key whose tool surface allows actions. |
insufficient_permission_ | 403 | Deleting shared memory needs the delete-memory permission. | Ask an admin, or delete only your own memories. |
memory_invalid_ | 403 | The key's memory ceiling leaves it nowhere to write. | Use a key that may write memory. |
allowance_insufficient_ | 429 | No rung of the request's level has allowance left this month. The message names the level and the month. | Wait for the month to turn, or ask an admin to raise the allowance. See Cost control. |
engine_server_ | 503 | The CLI a | Use an |
upstream_server_ | provider's | The model provider returned an error; the message carries its text. The provider's own status is passed through, except that its 401 and 403 become 502. | Read the provider's message: an invalid provider key, its rate limit, an overloaded model. |
no codeinvalid_ | 400 | The body failed validation. The message reads | Correct the field it names. |
no codepermission_ | 403 |
| Send |
no codeserver_ | 500 | Something failed inside Memtro. | Retry; quote the request id to support if it persists. |
A 429 is either your organisation's allowance (allowance_exhausted, which retrying will not fix until the month turns) or the per-address rate limit at the edge, which answers before the request reaches Memtro; back off and retry that one. See Limits.
Symptoms rather than codes
"invalid x-api-key" from Anthropic. You pasted a Claude Code token (sk-ant-oat01-…) under the Anthropic provider. Tokens belong under the Claude Code provider; Anthropic takes Console keys (sk-ant-api03-…).
No memory in answers. Check the request's memtro.memory setting is not off, that the Chat page's Memory selector is on, and that there is something to recall (Dashboard → Memory). Memory works with every provider, Claude Code included; an OpenAI or Google key of your own only changes which embedding model is used.
No connector tools. Tools appear only for systems you (or your organisation) have connected on Dashboard → Connections. Personal connections serve only your requests.
The agent did not check a system. Say which systems to use in the question, or run in agent mode (auto:agent), which cross-references by default. The answer ends with a line per system consulted.
A job did not run. Check it is enabled and that the next run time has passed; jobs are checked every minute. The job's panel on Dashboard → Jobs shows the last error.
Requests time out in my client. Agent runs can take minutes. Raise the client timeout; stream responses to see progress as reasoning_content.