Authentication
API keys, account context, and how to obtain credentials.
The LumenOne API authenticates requests with two pieces of context:
Authorization header.X-Account-Id header on routes that target a specific account.API keys can only be issued by a LumenOne superadmin. You cannot self-serve keys today.
To request a key:
[email protected]) with your company name.Attach the key as a Bearer token on every request:
You can verify a key is valid by calling GET /v1/auth:
A 403 response with InvalidAPIKey means the key is missing, malformed, or revoked.
X-Account-Id headerMost endpoints — anything that touches an organization, workspace, document, or number — also require the X-Account-Id header:
Rules:
403 (wrong company) or 404 (org not under this account).GET /v1/orgs accepts the header optionally — omit it to list every org under your company; include it to narrow to a single account.
X-Account-Id to narrow access.