Docs menu

Team and access

API keys

Create Lundot API keys for scripts, servers and assistants that cannot sign in: choose scopes, sites and expiry, then edit, rotate, replace or revoke a key.

On this page 9 sections

An API key lets a script or server use Lundot. For an AI app, use Settings, Assistants (Connect an assistant).

A key never exceeds your own access and expires within a year. Keys live under Settings, Developers, API keys.

Create a key

  1. Choose Create key.
  2. Under Name, say what it is for, such as "Weekly report script".
  3. Under Owner, owners and admins choose You or Workspace; other members create personal keys.
    • A personal key acts as you and stops when you leave the workspace or lose access.
    • A workspace key survives people leaving; a member's request waits for an owner or admin.
  4. Under Access, choose Read only or Read and change goals (goals:write, shown on the key as Create and change goals). Changing goals needs edit access to product reports on every chosen site; a key can never delete goals.
  5. Under Sites, keep All sites (later sites too, if your role allows) or narrow to groups. A group covers its sites, including later ones.
  6. Under Expires, choose 30 days, 90 days (default) or 1 year.
  7. Under More options, tick Assistants only to limit the key to MCP.
  8. Choose Create key.

Lundot shows the key once. Choose Copy key and store it in a password manager, never in a chat, file or link. A lost key cannot be recovered: create a new one and revoke the old.

New keys start with lundot_pk_ (personal and assistants-only) or lundot_sk_ (workspace). Older lundot_ keys keep working.

Use a key with an assistant

Use a key with an assistant, below the list, walks you through a setup that only names LUNDOT_API_KEY. See Use a key instead.

Approve a workspace key

Owners and admins switch between Your keys and Workspace. A waiting key shows Waiting for approval and Approve. To approve one that changes goals, you need edit access to product reports on its sites.

Use a key

Send the key as a bearer token, read from where you keep it:

curl -H "Authorization: Bearer ${LUNDOT_API_KEY}" \
  "https://YOUR-LUNDOT-ADDRESS/api/v1/sites"

Replace YOUR-LUNDOT-ADDRESS with your Lundot address.

Scope Lets the key
read GET sites, reports, the goal list and chart notes. Every key has it.
goals:write Add a goal (POST /api/v1/sites/{siteId}/goals) and change one (PATCH /api/v1/sites/{siteId}/goals/{goalId}).
  • Every other route and change answers 403, whatever the scopes.
  • A key reaches only the products you chose.
  • Limit: 300 requests a minute per key, 30 of them changes. Beyond that: 429 with Retry-After.

See the API reference and API errors and limits.

See what a key is doing

Each row shows the name, scopes, last four characters (lundot_pk_Q1w2E3…Zx9a), owner, last use and expiry. Within 7 days of expiry a key reads Expiring and a banner offers Create replacement. Unused for 90 days, it reads Not used in 90 days.

Edit access

Edit access in the row's menu changes sites, scopes or expiry; Rename changes the name. The secret stays the same; changes apply from the next request.

  • You edit your own keys within your access; owners and admins edit workspace keys. Narrowing or rotating is allowed even after your access shrank.
  • Under Expires, Keep leaves the date; the other choices count from today, capped at one year from creation.
  • Assistants only cannot be changed.
  • Each member can make 30 key changes (create, edit, rotate, revoke, approve) in 10 minutes.

Edits are recorded in the audit log as key.updated, with sites and scopes before and after.

Rotate a key

Choose Rotate secret. Under Old secret stops working, choose Now, In 1 hour, In 24 hours (default) or In 7 days; choose Now if it leaked. The new secret is shown once. Both work until the old one stops (Stop old secret now ends it early).

Replace a key

Create replacement (on an expiring, expired or revoked key) copies the old key's name, owner and access. With Revoke the old key once the new one is used (on by default), the new key's first request revokes the old one. Swap it before the old one expires.

Revoke a key

Choose Revoke, then Revoke key. It stops at once and stays listed as Revoked (or Revoked automatically after a replacement). A personal key also stops when its maker is removed or loses the access it needs.

Creation, approval, changes, rotation and revocation go to the audit log; the key itself never does.

  • DocsAPI reference

    The 47 requests an API key can make, each with its scope and parameters, a request you can run and the shape of the answer.

  • DocsConnect an assistant (MCP)

    Connect Claude, ChatGPT, Cursor, Codex, OpenCode or another assistant to Lundot over MCP with sign-in or a key, and see which tools it can use.