Reference

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.

Open Memtro

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 typeStatusMeaningWhat to do
invalid_api_keyinvalid_request_error401

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 Authorization: Bearer sk-memtro-…. Keys cannot be extended: create a new one on Dashboard → Profile → API keys (acts as you) or Organisation → API keys.

subscription_inactiveinvalid_request_error402

The organisation behind the key has no active Memtro subscription.

An owner starts one on Dashboard → Organisation → Billing.

model_not_foundinvalid_request_error404

The model id is not one Memtro knows, or a compat: id is malformed (400).

Use an id from Model ids; GET /v1/models lists the ones you can use.

provider_not_configuredinvalid_request_error400

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_provider_base_urlinvalid_request_error400

An OpenAI-compatible endpoint's stored base URL cannot be used: it cannot be read as a URL, is not https://, carries a user name or password, or names a port other than 443 or 1024–65535.

Correct the base URL under Dashboard → Providers. See OpenAI-compatible endpoints.

provider_base_url_not_allowedinvalid_request_error400

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_unavailableinvalid_request_error400

auto could not find a usable ladder.

Add a provider key, or set a ladder under Dashboard → Routing.

unsupported_parameterinvalid_request_error400

A parameter this endpoint cannot honour (n above 1, logprobs, top_logprobs, an unsupported response_format), or a value a memory route cannot read. param names it.

Drop or correct the parameter the message names.

invalid_as_ofinvalid_request_error400

memtro.as_of is not a calendar date.

Send YYYY-MM-DD.

not_foundinvalid_request_error404

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_only_keypermission_error403

The key was issued read only, and the request writes.

Use a key whose tool surface allows actions.

insufficient_permissionpermission_error403

Deleting shared memory needs the delete-memory permission.

Ask an admin, or delete only your own memories.

memory_disabledinvalid_request_error403

The key's memory ceiling leaves it nowhere to write.

Use a key that may write memory.

allowance_exhaustedinsufficient_quota429

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_unavailableserver_error503

The CLI a claude-code/* or codex/* model needs is not installed on this server.

Use an anthropic/* or openai/* model, or contact support.

upstream_errorserver_errorprovider'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_request_error400

The body failed validation. The message reads Invalid request: <field>: <problem>.

Correct the field it names.

no codepermission_error403

POST /v1/memory into shared memory without the import permission.

Send "memtro": {"memory": "personal"}, or ask an admin.

no codeserver_error500

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.

Where agents remember your company

Sign in, add a provider key, create an API key and point your tools at Memtro. It takes about five minutes.

7-day free trial · card on file, nothing charged until it ends · cancel any time