LemuAIDocs

Getting Started · 1 min read

Authentication

Authenticate Lemu AI API requests with an organization API key

Open in ChatGPTOpen in ClaudeMarkdown

API keys#

Every request is authenticated with an API key that belongs to your organization. Anything you read or create with a key belongs to that organization.

Create a key#

Create keys in the Lemu AI dashboard under Settings → API Keys (see API Keys). The full key is shown only once, when you create it. Store it straight away in a secrets manager or an environment variable. Keys start with lemu_.

You can also archive a key from the same page. An archived key stops working immediately.

Send the key#

Pass the key in the X-API-Key header:

cURL
curl https://app.lemuai.com/api/v1/workflow/fetch \
  -H "X-API-Key: lemu_your_api_key"

The Authorization: Bearer lemu_your_api_key header is also accepted, except on Trigger an outbound call, which only reads X-API-Key. Use X-API-Key everywhere to keep things simple.

What a key can do#

An API key acts for your organization, not for a team member, so team roles don't limit it: a key can use every endpoint in this reference. One exception: the contacts endpoints show full phone numbers only if the team member who created the key may view personal data.

An API key can act on your whole organization. Keep it on your server. Never put it in a browser, a mobile app, or a public repository.

Authentication errors#

StatusMeaning
401 UnauthorizedThe key is missing, wrong, or archived
403 ForbiddenThe key is valid, but the resource belongs to another organization
JSON
{
  "detail": "Invalid API key"
}

Was this page helpful?