Skip to Content

API keys

Preview

Create, scope, rotate and revoke the workspace API keys that authenticate REST and MCP requests.

Preview

This feature is in preview. The contract documented here is stable enough to build against, but details may still change before general availability.

API keys authenticate server-to-server requests to the Luso8 API and the remote MCP server. Each key belongs to one workspace and carries a set of scopes that limit what it can do.

Key format

Keys start with a fixed prefix followed by 40 random characters:

luso8_sk_live_<40 characters>

The luso8_sk_live_ prefix makes keys easy to recognize in logs and by secret scanners. If you find a key somewhere it should not be, revoke it immediately.

Create a key

Only workspace Owners and Administrators can manage API keys. See Roles.

Open the API keys page

In Luso8, open Settings›Developers›API keys.

Name the key and choose scopes

Click Create key. Give it a name that says where it is used, such as website-signup-sync or data-warehouse-export, then select the narrowest set of scopes the integration needs.

Copy the key

The full key is shown once. Copy it into your secret manager or environment before closing the dialog. Luso8 stores only a hash, so a lost key cannot be recovered; create a new one instead.

Use a key

Send the key as a bearer token, or in the X-API-Key header:

curl https://api.luso8.rexplore.ai/api/v1/companies \
  -H "Authorization: Bearer $LUSO8_API_KEY"

Scopes

A scope is <resource>:read or <resource>:write. Write includes read, so a key with deals:write can also list deals. The special scope * grants full access to every resource, including resources added later.

Resourceread lets youwrite also lets you
contactsList, search and get contactsCreate, bulk create, update and delete contacts, set custom fields
companiesList, search, count and get companiesCreate, bulk create, update and delete companies
dealsRead deals, prospects, customers, products and pipeline summariesCreate and update them, convert leads to deals and deals to customers
leadsRead leads and AI lead search resultsCreate and update leads, start, answer and cancel lead searches
listsRead lists and their membersCreate lists, add and remove contacts
campaignsRead campaigns, steps, enrolled contacts and analyticsCreate and edit campaigns and steps, enroll contacts, launch, pause, resume
conversationsRead inbox and support conversations and messagesSend messages, update status or assignment, hand off to a human
callsRead call logs, recordings, performance and scheduled callsSchedule, update and cancel calls, update call logs
appointmentsRead appointments, upcoming meetings and statsCreate, update, cancel and change the status of appointments
ticketsRead tickets, categories and commentsCreate, update and delete tickets, add comments
agentsRead AI agents, voice agents and their conversationsCreate, update, enable and disable agents
knowledgeRead folders, documents and search the knowledge baseCreate folders, upload and delete documents
workflowsRead workflows, events and runsCreate and edit workflows, trigger and cancel runs
reportsRead workspace metrics and export reports(no write operations)

Rotate a key

Rotate keys on a schedule and whenever someone with access leaves the team:

  1. Create a new key with the same scopes.
  2. Deploy it to your integration and confirm requests succeed.
  3. Revoke the old key.

Revoking takes effect immediately: the next request with that key returns 401 Invalid API key.

Best practices

  • One key per integration. You can revoke one integration without breaking the others, and the key name tells you what will stop.
  • Least privilege. Grant read unless the integration writes, and avoid * outside short-lived experiments.
  • Server only. Never ship a key in a browser, a mobile app or client-side code. Proxy requests through your backend.
  • Keep keys out of URLs and logs. Send them in headers, and mask them in your own logging.
  • Watch the rate limit. Each key gets 600 requests per minute; see Rate limits.
Edit on GitHub

Last updated on

On this page