Skip to main content
An API key lets a script, the command line or Terraform act for you in one project. It has your rights in that project, never more.

Create a key

API keys page listing keys with their access, creator, last use, expiry and status
  1. In the console, switch to the project the key is for.
  2. Open the menu at the bottom of the sidebar and choose API keys.
  3. Choose Create API key, and give it:
    • a name, so you recognise it later (for example ci-pipeline);
    • its access: Read only or Read and write;
    • an expiry, up to one year. The default is 90 days.
  4. Copy the key. It starts with ic_ck_.
The key is shown once. Store it in a password manager or your CI’s secret store, never in code or a repository. If you lose it, revoke it and create a new one.

Scopes

Keys can’t manage keys, team members or billing; those stay in the console.

Who sees which keys

You see the keys you created. A project owner sees every key in the project, and can revoke any of them. The list shows each key’s name, the start of the key (ic_ck_ and its id), its scope, who created it, when it was last used and when it expires. The rest of the key is never shown again.

Revoke a key

On the API keys page, press and hold the revoke button next to the key (Hold to revoke). It stops working at once, everywhere. Revoking can’t be undone; create a new key instead. A key also stops working when it expires, and when its creator leaves the project.

Keys and two-factor sign-in

API keys don’t ask for a code. If you’ve turned on two-factor sign-in for the console, your keys keep working as before. A key acts for you without a code, so keep it as safe as your password, and revoke it as soon as you no longer need it.

Use a key

Send it as a bearer token:
Your console address is in your welcome email. See the API overview for errors, retries and limits.
Use one key per tool or pipeline, with the narrowest scope it needs. Then you can revoke one without breaking the others.