Authentication and API keys
LUMA uses two kinds of credentials:
| Credential | Looks like | Where to use it | Lifetime |
|---|---|---|---|
| API key | lm_live_... | Your own server only | Until it is replaced |
| Agent client token | a signed token (JWT) returned by the handshake | Website widget, your own chat window, mobile app | Short-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
- Sign in to the LUMA app as the account owner.
- Open the profile menu (your initials, top right) and choose API Key.
- 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
| Prefix | Meaning |
|---|---|
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
403on 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
| HTTP | error.code | Meaning | What to do |
|---|---|---|---|
| 401 | UNAUTHORIZED | Missing, wrong, revoked or expired credential | Check the Authorization header and the key |
| 403 | PLAN_FEATURE_NOT_INCLUDED | Your plan has no API access, or no access to this feature | Upgrade to LUMA Elevate or Enterprise |
| 403 | FORBIDDEN | The credential is valid but may not do this action | Check that the resource belongs to your organization |
See Responses and errors for the full list.