Authentication
The LumenOne API authenticates requests with two pieces of context:
- An API key, sent as a Bearer token in the
Authorizationheader. - An account id (UUID), sent in the
X-Account-Idheader on routes that target a specific account.
Getting an API key
API keys can only be issued by a LumenOne superadmin. You cannot self-serve keys today.
To request a key:
- Email your LumenOne contact (or
[email protected]) with your company name. - A LumenOne superadmin will provision the key and return it to you over a secure channel.
- Store the key in a secrets manager — it grants company-wide access. There is no API to retrieve it after issuance, so if you lose it, contact a LumenOne superadmin to have a replacement issued.
Sending the API key
Attach the key as a Bearer token on every request:
GET /v1/me verifies the key and returns the partner it belongs to:
A 403 response with InvalidAPIKey means the key is missing, malformed, or revoked.
The X-Account-Id header
Most endpoints — anything that touches an organization, workspace, document, or tool — also require the X-Account-Id header. Its value must be the id of the account that owns those resources.
Rules:
- The account must be one of your customers — an account your company owns. You can only act on accounts your key created.
- Org- and workspace-scoped routes additionally require the resource to belong to that account (that customer).
- Mismatches return
403(the account is not one of yours) or404(the org/workspace is not under this account).
You can confirm an account is yours by passing its id to GET /v1/me — when valid, the account is echoed back alongside the partner:
List the accounts your key can use with GET /v1/accounts.
The account endpoints themselves — GET/POST /v1/accounts and the /v1/accounts/{accountId} item routes — are partner-scoped and do not take X-Account-Id; an account is addressed directly by its id. The header only comes into play once you operate on the organizations, workspaces, documents, and tools inside an account.
Key scope and rotation
- Keys are scoped to your company. They can read/write across all accounts and orgs your company owns — pair them with the appropriate
X-Account-Idto narrow access. - To rotate or revoke a key, contact a LumenOne superadmin. There is no self-service rotation endpoint yet.
- Treat keys as production secrets: do not embed in client-side code, public repos, or logs.

