Help › Keys, CLI and automation

API keys

BuiltLast updated

On this page

There are two kinds of key. Mixing them up is the most common mistake.

KeyLooks likeSecret?Use
Site keyrl_site_live_...No. It is public.In your pages or plugin, so the loader finds your translations.
Secret API keyrl_sec_live_...YesServers, plugins, the command-line tool and build jobs that call the API.

Both come in live and test forms. Use a test key while you experiment.

Create a secret key#

Admins and owners open API keys and choose Create a key. Give it a name, choose its scopes, and, if you like, limit it to one site and give it an expiry date.

The key is shown once, when you create it. We store only a hash and the first characters. If you lose it, rotate or revoke it and make a new one.

Scopes#

Give a key only what it needs. A build job that publishes needs bundles:publish, not keys:manage.

ScopeAllows
sites:read, sites:writeList, create and change sites
strings:writeSend text found on your pages
translations:read, translations:writeRead, export, change and import translations; run machine translation
bundles:publishPublish
usage:readRead usage
keys:manageManage keys

Other modules add scopes of their own, such as billing, webhooks and the audit log.

Rotate and revoke#

The key table shows each key's start, scopes, site limit, status, expiry and when it was last used.

Rules#

Support staff in a support session cannot see this page.