API keys

Create, rotate and revoke the keys scripts and tools use to call the API.

#Manage keys

An API key lets a script or tool call the API for your team. Create one on the API keys page with Create key. The full key is shown once. Only a hash is stored, so copy the key when you see it.

  • Edit name renames a key, so you remember what uses it.
  • Rotate gives a key a new secret and keeps its name. The old secret stops working at once. So does every dashboard sign-in made with it.
  • Revoke stops a key at once. Revoke a key you no longer use or that may have leaked.

Only a team owner can create, rename, rotate or revoke a key. Other members see the list. A script that holds a key can manage keys too.

Each new key sends an email to the team's owners. The email never contains the secret.

A key acts for the whole team, so give each tool its own key. The key endpoints are in the API reference.

API keys | CI Router docs