API keys are long-lived bearer tokens that authenticate requests to Lyceum Cloud. They’re prefixedDocumentation Index
Fetch the complete documentation index at: https://docs.lyceum.technology/llms.txt
Use this file to discover all available pages before exploring further.
lk_ and pass in the Authorization header on every request:
API keys vs JWT tokens
The platform supports two token types:| Token | Lifetime | When to use |
|---|---|---|
API key (lk_...) | Long-lived, until revoked or expired | CLI in CI, scripts, integrations, anything non-interactive |
| JWT | Short-lived, refreshable | Interactive dashboard sessions, API playground, testing |
lyceum auth login exchanges email and password for a JWT). For non-interactive use — CI pipelines, scheduled jobs, deployed services — generate an API key and pass it as the bearer token instead.
JWTs can be refreshed via POST /auth/refresh. API keys can be revoked or temporarily disabled without deleting them.
Lifecycle
API keys can be:- Created with a name and an optional expiration date
- Revoked (deleted) at any time, effective immediately
- Toggled active/inactive — useful for temporarily disabling a key without losing the audit trail
REST API
| Method | Endpoint | Purpose |
|---|---|---|
GET | /auth/api-keys/ | List your keys |
POST | /auth/api-keys/ | Create a new key — returns the full value once |
DELETE | /auth/api-keys/{api_key_id} | Revoke a key |
PATCH | /auth/api-keys/{api_key_id}/toggle | Activate or deactivate |
POST | /auth/api-keys/validate | Check whether a key is valid (without using it) |
Validating a key
The/auth/api-keys/validate endpoint lets you check whether an API key is valid and what user it belongs to without making a real authenticated request. Useful for build-time sanity checks in CI:

