Tokens and keys
A token belongs to a person. A key belongs to a machine. Pipeline keys used to be called upload tokens. In a pipeline, the variable is still LIGHTBOLT_TOKEN, and the prefix is still lbt_.
| Token or key | What it is for | What it reads or does |
|---|---|---|
| Frontend key | A frontend server | The environments assigned to that frontend. |
Developer token (lbd_…) |
A developer who runs a frontend on their own computer | One environment that is not live. A personal token reads every environment that is not live, of the sites that its person may open. It only does GET. |
Pipeline key (lbt_…) |
A pipeline | It uploads themes of its organisation. |
Developer tokens
A personal token
A person makes a personal token under Profile → Developer tokens, for one organisation. Their account needs a second factor.
- It reads the environments that are not live, of every site of that organisation and its clients that this person may open.
- Lightbolt checks this at the moment of each call. When the person is taken off a site, the token stops reading that site at once. Without the second factor, or out of the organisation, it stops altogether.
hostsgives the hosts of all of them.- In the dev kit, it is the top-level
token, for every line ofdev_hosts.
A token for one site
You make a token for one site under Domains and environments → Developer tokens of a site. It is for one environment that is not live. You see it once. It is valid for 180 days, and you can withdraw it at once.
- It reads (
GET)site,manifest,entries,list, files, fonts and forms (to draw them). It also reads search,hosts, shortcodes, engine versions, and the theme versions of the frontend of its environment.hostsonly gives the hosts of its own environment. - Anything that writes gets a
405. - It has its own limit of 1200 calls a minute.
- A laptop gets no signal. So poll every 15 seconds.
Developing locally explains how to set it up.
Good to know
- Keep a token in configuration outside the web root. Never put it in a repository, a template or a log.
Also called: API keys, access tokens, credentials, personal access token.
Last changed