Skip to main content

API Keys

API keys provide programmatic access to the Gradient API. Keys are scoped to your organization and can be used for automation, CI/CD integration, and building custom tooling.

List API Keys

Returns all API keys for your organization. The full key value is never returned after creation.
Requires admin role (owner or admin).

Create API Key

name
string
required
Human-readable label for the key
expiresAt
string
ISO 8601 expiry date
scopes
string[]
Reserved for future use
The key field is only returned once, at creation time. Store it securely - it cannot be retrieved again.

Revoke API Key

Deactivates an API key immediately. Any requests using this key will be rejected.