Skip to main content

API keys

These endpoints manage API keys. The API Keys page in the app uses them. They need a dashboard session: a key can't create or revoke keys. To use a key, see Authentication.

The API key object​

FieldTypeDescription
idstringUnique id. Use it to revoke the key.
namestringYour label, 1–64 characters.
prefixstringThe 8 characters after ll_live_. Shown in the app so you can tell keys apart.
permissionsstring[]The key's scopes.
created_atstringISO 8601.
last_used_atstring | nullTime of the latest request with this key.
revokedbooleantrue once revoked.
keystringThe full secret. Only in the create response.

Create a key​

POST/api/api-keys
Auth
Dashboard session only
Plan
Pro and above

Body parameters​

NameTypeRequiredDescription
namestringYesA label, 1–64 characters.
permissionsstring[]NoAny of links:read, links:write, analytics:read. Empty or missing means all three. Unknown scopes return 400.
Request body
{ "name": "ci-bot", "permissions": ["links:read", "links:write"] }
Response · 200 OK
{
"id": "2c8f3a91-6b5e-4d70-9f12-8e4d3c2b1a09",
"name": "ci-bot",
"prefix": "a1b2c3d4",
"permissions": ["links:read", "links:write"],
"created_at": "2026-11-30T10:00:00+00:00",
"last_used_at": null,
"revoked": false,
"key": "ll_live_a1b2c3d4…"
}

Store key now. No later response includes it.

List keys​

GET/api/api-keys
Auth
Dashboard session only
Plan
Pro and above

Returns up to 100 of your keys, newest first, revoked ones included. The secret is never returned.

Revoke a key​

DELETE/api/api-keys/{key_id}
Auth
Dashboard session only
Plan
All plans

The key stops working at once. Returns { "ok": true }, or 404 if the key is unknown or already revoked.