API keys
API keys
API keys let a script, a scheduled report or a BI job read your company's Lanesra data, and, with a role that allows it, make changes. A key opens the same endpoint AI assistants use through the MCP server, and it answers plain JSON-RPC over HTTP.
What a key opens#
A key authenticates Lanesra's MCP endpoint, https://app.lanesra.ai/mcp. It is:
- Read-only unless its role allows changes. As a Viewer, the default, it reads numbers and sources and changes nothing. Given a role that makes changes, it can also use the change tools that role allows, such as adding prompts or starting a quoted capture.
- Limited to its projects. A key reads every project in the company, including ones added later, or only the projects it was created for. It never reads another company.
- Given a role. Every key has a role, Viewer by default, which reads every part of a project. A custom role that reads less narrows the key to what the role reads. See Roles.
- For the MCP endpoint only. The dashboard's own API uses your signed-in session and doesn't accept keys.
Each key starts with lns_live_.
Kinds of key#
| Key | Where to find it | What it reads |
|---|---|---|
| Your personal MCP key | Integrations → MCP. The owner, project Admins and Members each have one | The projects you use MCP on |
| The company key | Integrations → API keys, for the owner only | Every project in the company |
| A key you create | Integrations → API keys → New key | Every project, or the projects you choose |
Your personal key is for your own AI assistant: it follows you, and stops working if you leave the company or change your password. Give scripts the company key or a key of their own, so a change to someone's access never breaks a report.
What you can build#
- Scheduled reports: pull your headline numbers every Monday and post them to Slack or email.
- BI dashboards: load visibility history and brand rankings into Looker Studio, Power BI or a warehouse.
- Alerts: check visibility daily and flag a drop.
- Custom agents: give your own AI agent the same tools Claude and Cursor get.
Every MCP tool is available to a key, on the projects it reads and within its role.
Who can manage them#
- The company owner sees every key, creates keys over every project or over the projects they choose, copies and replaces the company key, and can revoke any key.
- A project Admin sees their own personal key, the personal keys of their project's Members, and the keys created for the projects they administer. They create keys for those projects only, and can revoke the keys they see.
- Everyone else has no key list. Their own MCP key is on Integrations → MCP.
- Creating a key needs a verified email address.
- Access needs an active plan. It pauses if billing lapses and comes back when the plan is renewed.
Next steps#
- Create a key in the app.
- Make your first request.
- Check the errors your script should handle.