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 an API key
Section titled “Create an API key”Create one key for each script or pipeline, so you can revoke or replace one without affecting the others. Set these fields:
| Field | What it sets |
|---|---|
| Name and description | How you recognize the key, such as ci-deploy-bot. |
| Role | What 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. |
| Access | Organization-wide, or limited to selected apps. |
| Expiration | Never, 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.
Use a key with the CLI
Section titled “Use a key with the CLI”Set the installation URL and the token in your CI secret configuration. Then the CLI runs as the key:
export SUPERPLANE_URL=https://app.superplane.comexport SUPERPLANE_TOKEN=your_api_key_token_heresuperplane whoamiSee Authenticate with an API token for saving the organization as a CLI context.
Replace, expire and delete a key
Section titled “Replace, expire and delete a key”- 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.
Personal API tokens
Section titled “Personal API tokens”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.