Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Auth

Token issuance

get

List the calling user's API keys in the current organization, including expired and revoked keys

Authorizations
AuthorizationstringRequired

Clerk-issued session JWT (used by the web UI). The full header value is Clerk <jwt>.

Responses
200Success
application/json
created_atstring · date-timeRequired
expires_atstring · nullableOptional
first_used_atstring · nullableOptional
key_idstring · uuidRequired
labelstring · nullableOptional
last_used_atstring · nullableOptional
revoked_atstring · nullableOptional
get/apikeys
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
  }
]
post

Create a long-lived API key for the calling user

Authorizations
AuthorizationstringRequired

Clerk-issued session JWT (used by the web UI). The full header value is Clerk <jwt>.

Body
expires_in_daysinteger · min: 1 · max: 1000 · nullableOptional

Optional lifetime in days (1-1000). Omit for a non-expiring key.

labelstring · nullableOptional

Human-readable label shown alongside the key (e.g. "laptop", "CI").

Responses
200Success
application/json
apikeystringRequired

The plaintext API key. Returned only once, on creation - store it now.

expires_atstring · nullableOptional
key_idstring · uuidRequired
labelstring · nullableOptional
post/apikeys
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
}
delete

Revoke one of the calling user's API keys in the current organization

Authorizations
AuthorizationstringRequired

Clerk-issued session JWT (used by the web UI). The full header value is Clerk <jwt>.

Path parameters
key_idstring · uuidRequired

API key ID

Responses
204Success

No content

delete/apikeys/{key_id}
DELETE /apikeys/{key_id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*

No content

post

Create a new LumiDB token with access to specified tables

Authorizations
AuthorizationstringRequired

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).

Body
tablesstring[]Required
Responses
200Success
application/json
lumidb_tokenstringRequired
post/create_token
POST /create_token HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 19

{
  "tables": [
    "text"
  ]
}
200Success
{
  "lumidb_token": "text"
}
post

Create a Clerk organization and make the current Clerk user its administrator

Authorizations
AuthorizationstringRequired

Clerk-issued session JWT (used by the web UI). The full header value is Clerk <jwt>.

Body
namestringRequired
Responses
200Success
application/json
slugstringRequired
post/organizations
POST /organizations HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "name": "text"
}
200Success
{
  "slug": "text"
}

Last updated