API tokens

Integrate

API tokens

Give scripts, CI and AI agents access to one project.

On this page

Apps, scripts, CI jobs and AI agents talk to Lantern with an API token. Each token belongs to one project.

Create a token#

  1. Open the project’s API tab. Creating tokens needs the manage API tokens permission (owners and admins by default).
  2. Create a token and give it a name. Changes a token makes appear in the activity feed under that name.
  3. Copy the token. It starts with lk_ and is shown only once.

The list shows each token’s name, prefix and when it was last used. Revoke a token to cut off its access at once.

Read-only or write#

Tokens are read-only by default. Open Write permissions when you create one to grant scopes — such as create keys or edit translations — so a CI script or an AI agent can push keys and values back.

Scopes are the same permission keys roles use. See the roles table for all of them and the write API for which call needs which.

Keeping tokens safe#

  • Store the token as an environment variable or CI secret, for example LANTERN_TOKEN. Never commit it.
  • A token only reaches its own project, and only does what its scopes allow.
  • To rotate a token, revoke it on the API tab and create a new one.
  • Never ship a token inside a mobile app: anyone can extract it. Apps download strings with an OTA distribution key, which can only read published releases.