Skip to main content
The Lemma API is currently in beta. If you don’t see the option to generate an API key in your settings, reach out to the Lemma team at contact@getlemmalemma.com to be included in the API beta.

Generating an API key

  1. Log in to your Lemma dashboard
  2. Go to Settings
  3. Select the API keys section
  4. Select Generate new key
  5. Give the key a descriptive name (e.g., “Accounting integration”)
  6. Copy the key — it is only shown once
Store your API key securely. Do not share it or commit it to source control. If you believe a key has been compromised, revoke it immediately from the Settings page and generate a new one.

Using your API key

Include the key in the Authorization header of every request using the Bearer scheme:
curl https://api.getlemma.com/v0/accounts \
  -H "Authorization: Bearer lm_key_your_api_key"

Key format

Lemma API keys are prefixed with lm_key_ so they are easy to identify. For example:
lm_key_a1b2c3d4e5f6g7h8i9j0

Revoking a key

To revoke an API key:
  1. Go to Settings > API keys
  2. Find the key you want to revoke
  3. Select Revoke
Revoked keys stop working immediately. Any integration using that key will begin receiving 401 responses.