Skip to content

API keys

Give scripts and CI a credential of their own, with a role, a scope and an expiry.

An API key is a credential for a script or CI job that isn’t a person. It belongs to the organization, not to a member, so it keeps working when people leave. Use it with the CLI or the API. You need permission to create API keys. By default, only Admins have it.

Create one key for each script or pipeline, so you can revoke or replace one without affecting the others. Set these fields:

FieldWhat it sets
Name and descriptionHow you recognize the key, such as ci-deploy-bot.
RoleWhat the key can do: Operator, Maintainer or Admin. Choose the lowest role that works. API keys can’t use custom roles. See Roles and groups.
AccessOrganization-wide, or limited to selected apps.
ExpirationNever, 30 days, 90 days, or a custom date.

SuperPlane shows the token once, after you create the key. Copy it into your secret manager. An API key can’t be an owner.

Set the installation URL and the token in your CI secret configuration. Then the CLI runs as the key:

Terminal window
export SUPERPLANE_URL=https://app.superplane.com
export SUPERPLANE_TOKEN=your_api_key_token_here
superplane whoami

See Authenticate with an API token for saving the organization as a CLI context.

  • Replace the token: Regenerate the key’s token. The old token stops working immediately.
  • Expire: After its expiration date, a key stops working. Change its expiration or create a new key to continue.
  • Delete: Delete a key you no longer use.

A personal API token belongs to a member and acts with that member’s role. Create named tokens in your account’s profile, under API tokens. SuperPlane shows each secret once, and you can revoke a token at any time. When a member is removed, their personal tokens are deleted. Use an API key for anything that should outlast a person.