Auth
Token issuance
List the calling user's API keys in the current organization, including expired and revoked keys
Clerk-issued session JWT (used by the web UI). The full header value is Clerk <jwt>.
GET /apikeys HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
[
{
"created_at": "2026-01-01T00:00:00.000Z",
"expires_at": null,
"first_used_at": null,
"key_id": "123e4567-e89b-12d3-a456-426614174000",
"label": null,
"last_used_at": null,
"revoked_at": null
}
]Create a long-lived API key for the calling user
Clerk-issued session JWT (used by the web UI). The full header value is Clerk <jwt>.
Optional lifetime in days (1-1000). Omit for a non-expiring key.
Human-readable label shown alongside the key (e.g. "laptop", "CI").
The plaintext API key. Returned only once, on creation - store it now.
POST /apikeys HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"expires_in_days": null,
"label": null
}{
"apikey": "text",
"expires_at": null,
"key_id": "123e4567-e89b-12d3-a456-426614174000",
"label": null
}Revoke one of the calling user's API keys in the current organization
Clerk-issued session JWT (used by the web UI). The full header value is Clerk <jwt>.
API key ID
No content
DELETE /apikeys/{key_id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No content
Create a new LumiDB token with access to specified tables
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
POST /create_token HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"tables": [
"text"
]
}{
"lumidb_token": "text"
}Create a Clerk organization and make the current Clerk user its administrator
Clerk-issued session JWT (used by the web UI). The full header value is Clerk <jwt>.
POST /organizations HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}{
"slug": "text"
}Last updated

