DocumentationAPI keys

API keys

Create and manage API keys

Create, copy, revoke and set the role of your company's API keys from Integrations → API keys in the Lanesra app. The page is for the company owner and project Admins.

Create a key#

  1. Open Integrations → API keys.
  2. Click New key.
  3. Under Name, name it after what will use it, such as "Weekly visibility report". A name is up to 80 characters.
  4. Under Projects it reads, choose its projects:
    • The company owner leaves them all unticked for a key that reads every project, including projects added later, or ticks some to limit it to those.
    • A project Admin is offered only the projects they administer, and ticks at least one. The key keeps reading them even if the Admin's own role changes later.
  5. Under Role, keep Viewer, which reads every part of a project, or pick a custom role to read less. See A key's role.
  6. Click Create key.
  7. Copy the key now. It is shown once. It's hidden on screen, and Copy puts it on your clipboard in full.

Only a hash of each key is stored, so Lanesra can't show it again. If you lose a key, create a new one and revoke the old one.

The key list#

Column What it shows
Name The name given to the key. A personal key is named MCP (personal)
Key The first characters of the key, to tell keys apart
Assigned to Who the key belongs to: a person, for a personal key; the projects a key was created for; or Company - all projects
Created by Who created it
Created When the key was created
Last used When the key last made a request, or "never"
Role The key's role, with a picker if you can change it

On a narrow screen, Created by and Last used are hidden.

The company owner sees every key. A project Admin sees their own MCP key, the personal keys of Members on the projects they administer, and the keys created for those projects.

The company key#

The company key is for scripts. It reads every project in the company, and only the company owner sees it. If there isn't one yet, click Create and copy it.

Its row has two icons:

  • Copy copies the full key again, at any time.
  • Replace swaps it for a new one: confirm with Replace key, then copy the new key. Scripts using the old key stop working at once, until they get the new one. Your personal key and every other key keep working.

Your own AI assistant uses your personal key from Integrations → MCP, not the company key.

Copying a key again#

Only your own personal key and, for the owner, the company key can be copied again from the list. Any other key can be copied only in the dialog that creates it. Another person's personal key says "Only their name can copy their key, from Integrations → MCP".

A key's role#

Every key has a role, shown in the Role column. Viewer, the default, reads every part of a project. A custom role that reads less narrows the key to the parts that role reads, from its next request, and the key keeps working with the same secret. See Roles.

To change it, pick another role in the key's Role picker.

  • The company owner can set the role of any key.
  • A project Admin can set the role of the keys they see.
  • A key is never given a role that reads more than you can read on its projects.

The picker offers Viewer, Member and your company's custom roles, and says what a script using the key could change with each. A role that makes changes lets the key use the change tools that role allows: adding and editing prompts and competitors, and, where allowed, writing briefs and starting captures, which spend credits. A personal key can be given a role that does more only by its holder; giving a key such a role re-issues it, and the new key is shown once.

Revoke a key#

  1. Click the bin icon on the key's row.
  2. Confirm with Revoke key.

Anything using the key stops working on its next call. This can't be undone.

  • A personal key: its holder's assistants are cut off from every project. The holder gets a new key the next time they open Integrations → MCP. To end someone's MCP access, make them a Viewer on every project in Settings → Members instead, which also makes them read-only on the dashboard.
  • A key created for some projects: it stops for all of them, including projects you don't administer.
  • The company key: scripts using it stop. The owner can create a new one from the same page.

Good practice#

  • One key per use. Revoking one never breaks another.
  • Keep keys secret. Store them in a secret manager or an environment variable, not in code, a spreadsheet or a shared document.
  • Clean up. Check Last used to find keys nothing uses any more, and revoke them.
  • Replace a key that leaked. Create a new key, move your script to it, then revoke the old one.

Questions about this guide? Contact the team