Skip to main content
The api_keys functions are currently in BETA. The API may change without notice. A one-time warning is emitted on first use. The createApiKey and refreshApiKey functions are in ALPHA.

List API Keys

Create an API Key

Create a Service Key

Service keys require an organizations array. Each organization needs an orgId and at least one space binding (each with a spaceId and an optional role). An optional accountRole sets the bot user’s account-level role (defaults to member).

Revoke an API Key

Refresh an API Key

Atomically revokes the existing key and issues a replacement with the same metadata (name, description, and key type). There is no window where neither key is valid.

With a New Expiration Date