Skip to main content

Authentication and API keys

LUMA uses two kinds of credentials:

CredentialLooks likeWhere to use itLifetime
API keylm_live_...Your own server onlyUntil it is replaced
Agent client tokena signed token (JWT) returned by the handshakeWebsite widget, your own chat window, mobile appShort-lived, renew with a new handshake

API key​

Every call to https://api.itechintl.com sends the key in the Authorization header:

Authorization: Bearer lm_live_YOUR_API_KEY

Get your key​

  1. Sign in to the LUMA app as the account owner.
  2. Open the profile menu (your initials, top right) and choose API Key.
  3. Copy the key and store it in your server's secret store or environment variables.

Team members cannot see the account key: a key acts with the owner's full rights, so it would bypass a team member's restrictions.

Key prefixes​

PrefixMeaning
lm_live_Standard key. All calls are real: messages are delivered and credits are used.
lm_test_Accepted the same way as lm_live_. There is no separate test environment: calls with a test key are also real.

Only keys starting with lm_live_ or lm_test_ are accepted. Keys with an older prefix were replaced on 25 November 2026 and are refused with 401.

What a key can reach​

  • A key belongs to one LUMA project inside your organization. It reaches only your organization's agents, WhatsApp numbers, contacts, groups, campaigns and webhooks.
  • API access needs LUMA Elevate or LUMA Enterprise. On other plans the call returns 403 PLAN_FEATURE_NOT_INCLUDED.
  • A suspended organization gets 403 on every call.

Keep your key safe​

  • Never put the key in a web page, a mobile app, a public repository or a support ticket.
  • The API Reference shows copy-ready code and never asks for your key. Try calls from a terminal or Postman with a test key, or in the LUMA app with the API Playground.
  • Use HTTPS only.
  • If a key may have leaked, contact LUMA support at once to have it replaced.

Agent client token (for chat windows and apps)​

A browser must never hold your API key. To chat with an agent, the caller first gets a short-lived token from the handshake with the public Project ID and Agent ID shown on the agent's Install page: the LUMA widget does this itself, your server does it for your own chat window, and a mobile app can do it directly. The token only allows chatting with that agent. Send it as:

Authorization: Bearer AGENT_CLIENT_TOKEN

When it expires, the chat answers 401; run the handshake again.

Authentication errors​

HTTPerror.codeMeaningWhat to do
401UNAUTHORIZEDMissing, wrong, revoked or expired credentialCheck the Authorization header and the key
403PLAN_FEATURE_NOT_INCLUDEDYour plan has no API access, or no access to this featureUpgrade to LUMA Elevate or Enterprise
403FORBIDDENThe credential is valid but may not do this actionCheck that the resource belongs to your organization

See Responses and errors for the full list.