Keys, scopes and headers
The X-API-KEY header, key scopes and presets, and the language and timezone headers.
X-API-KEY: <your key>Every request to the public API sends the key in the X-API-KEY header. No operation works
without a key. Almost every operation requires a specific scope, listed on its reference page.
The exception is the AI model catalog: any active key can read it.
Public API and the dashboard
The public API (/api/public/*) and the web dashboard API use different authentication. The
dashboard Bearer token does not work in the public API, and an API key does not open dashboard
operations.
The server reads the key only from the X-API-KEY header. A key sent in Authorization or
Api-Key is ignored, and the response is the same as for a request with no key.
- 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}. Themessagedepends 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.- What to do right now
Check that the header is named exactly
X-API-KEY, notAuthorizationorApi-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.
The server stores a sha256 hash of the key, not the key itself. Changes you make to a key in the dashboard take effect on the next request: new scopes, deactivation, reissue.
Key scopes
The scope is checked before the operation runs. A key without the required scope gets 403, and
nothing is executed.
| Scope | What it opens | Operations |
|---|---|---|
orders.read | Reading orders and chunks, the text chunking preview, dubbing options and quotes, WebSocket subscription to orders | 11 |
orders.write | Creating, canceling and retrying orders; retrying and regenerating chunks; dubbing | 7 |
orders.download | POST /storage/url — exchanging a file path for a temporary link | 1 |
templates.read | Reading templates, browse, config-options | 4 |
templates.write | Creating, updating and deleting templates | 3 |
voices.read | The voice catalog of any provider and its filters, LumVoice voices, your own clones and their quota | 8 |
voices.write | Creating, retrying and archiving Cartesia and Fish Audio voice clones | 3 |
billing.read | Wallets and balance history, usage, subscriptions | 5 |
profile.read | GET /user | 1 |
reseller.read | Reseller dashboard: profile and balance, settings, statistics, codes with their full value | 5 |
reseller.write | Issuing gift codes from the reseller balance and canceling them | 2 |
* | Passes any scope check, including scopes that don't exist yet, except reseller.read and reseller.write | all except reseller |
GET /services opens to a key with any of templates.read, orders.read, and voices.read,
so the Operations column does not count it. The column does include POST /broadcasting/auth. It has no reference page of its own and
is covered in the Realtime guide. PUT and
PATCH /templates/{template} are one operation under two methods, with a single reference page.
The AI model catalog (GET /ai/models and GET /ai/models/{key}) and GET /key need no scope, so
they are not in the table.
* does not cover the reseller scopes, and no preset includes them. A gift code works like bearer
money, so a key gets reseller.read and reseller.write only when they are listed explicitly. A
key with * gets 403 on GET /reseller.
Scopes are matched exactly. orders.read does not include orders.download: a key that reads
orders and sees the paths in result.files[] gets 403 when it exchanges a path for a link. This
refusal comes at the end of the flow, when the file is already generated and paid for, so check
for orders.download up front.
Get File URL
Presets
When you create a key, you can pick its scopes with a preset.
| Preset | Scopes | Does not open |
|---|---|---|
read_only | orders.read, orders.download, templates.read, voices.read, billing.read, profile.read | writing orders, templates and voice clones; the reseller dashboard |
automation | the read_only scopes plus orders.write | POST /templates, PUT/PATCH and DELETE /templates/{template}; creating, retrying and archiving clones; the reseller dashboard |
full | all scopes except the reseller ones, including templates.write and voices.write | the reseller dashboard |
A preset expands into an explicit list of scopes. A key created this way does not receive scopes
added to the API later. The wildcard * works differently: it also passes checks for scopes added
after the key was issued, except the reseller scopes.
The automation preset and templates
The automation preset has templates.read but not templates.write. It also lacks
voices.write: a key that clones voices needs that scope added manually, or the full preset.
The voice for text to speech is set in the template, in config.tts_settings.voice_id. A
text-to-speech flow therefore starts with POST /templates, and with an automation key that
request returns 403. No order is created.
Do
For a "template, then order" flow, pick the full preset, or add templates.write to
automation when you create the key.
Don't
Look for the cause of a 403 in the order when it was the POST /templates request that failed.
A template belongs to the account, not to a key. If the template already exists, created in the
dashboard or with another key, the automation preset is enough. Another account's private
template is not available to any key.
- What happened
The order was not created. The response is HTTP 403 with the body
{"success": false, "message": "…", "reason": "template_access_denied"}. The code comes on an order retry (POST /orders/{order}/retry) when the template of the original order is no longer available.- What to do right now
Such an order cannot be retried. Create a new order from your own template or a public one. A template belongs to the account, not to a key: a template created in your account works through the API, and the other way round.
Language and timezone headers
X-Locale: en
X-Timezone: Europe/MoscowBoth headers are optional.
X-Locale sets the language of human-readable text: message in responses and names in lists
such as GET /voices/tags. Machine fields (reason, statuses, codes) do not depend on the
language, so branch on them, not on message. The language is chosen in this order: X-Locale,
the account language, Accept-Language, the default language.
X-Timezone takes an IANA zone name, such as Europe/Moscow. Times in responses use ISO-8601
with an explicit offset, in UTC by default. The server rejects a bare offset such as +03:00
because it does not account for daylight saving time. The response returns the applied zone in
the same header. If your value was not accepted, the response says X-Timezone: UTC.
What a key cannot do
The public API does not process payments or manage keys. With a key you cannot top up the balance, make transfers, buy subscriptions, change the profile or manage API keys. All of that happens in the dashboard.
Orders cannot be updated or deleted; they only support cancel and retry. PUT, PATCH and
DELETE /orders/{order} return 405.
Checking a key
curl -s 'https://api.lumean.app/api/public/key' \
-H 'X-API-KEY: <your key>'{
"success": true,
"message": "…",
"data": {
"id": 42,
"name": "Production integration",
"permissions": ["orders.read", "orders.write", "orders.download", "templates.read"],
"is_active": true,
"expires_at": null,
"limits": {
"requests": { "per_minute": 60, "per_hour": null, "per_day": null },
"tokens": {
"per_minute": null, "per_hour": null, "per_day": null, "per_month": null,
"quota": { "limit": null, "used": 0, "remaining": null }
}
}
}
}GET /key describes the key that signed the request. It needs no scope, creates nothing and
charges nothing, which makes it a good key check.
| Code | What it means |
|---|---|
200 | The key was accepted. permissions lists its scopes, limits its request and token windows |
401 | The key was not accepted: missing, truncated, unknown, deactivated or expired |
id and name match the key in My API keys. An empty permissions list means the key has no
Public API scopes: operations that need a scope return 403. A request to GET /key counts
against the key's request windows like any other.
Current API key
Keys are created in My API keys, which also shows each key's scopes and limits. If you don't have an account yet, sign up first.
This page for AI
Updated 11/09/2026 · API version 1.0.0