Skip to content
Lumean

401 — key rejected

401no Retry-After

What happened

The request was rejected before processing: nothing was done and nothing was charged. Body: {"success": false, "message": "API key is missing. Provide it in the X-API-KEY header.", "data": null}. The message depends on the cause: Invalid or inactive API key. for an unknown or disabled key, This API key has expired. for an expired one. The public API accepts no requests without a key.

Why

The X-API-KEY header was not sent, its name has a typo, or the value was cut off when copied. The key may also be unknown, disabled, or expired. The same response comes back when the key owner's account is blocked or deleted. The public API does not accept the web dashboard Bearer token, and an API key does not open dashboard endpoints.

What to do right now

Check that the header is named exactly X-API-KEY, not Authorization or Api-Key, and that the full value is sent. If the key is correct, open the developer section and check that the key is active and has not expired. A retry with the same key returns the same 401.

Which request to send next

GET /key is a good key check: it creates nothing, charges nothing and needs no scope. 200 means the key works, and the response lists its scopes and limits. Another 401 confirms that the key itself is the problem.

This page for AI

Open .mdllm.md

API version 1.0.0