Overview

API Keys provide machine-to-machine authentication for the Enterprise API. They are ideal for automated systems, integrations, and services that need to interact with the API programmatically.

Key Concepts

API Key Creation

API Keys can only be created by users with appropriate permissions (Super Admin or users with the create-apikey permission).

Initial State

By default, new API Keys do not have any roles assigned, which means they cannot perform any operations. They must be assigned roles to gain access to specific operations within organizations, tenants, or services.

Expiration

API Keys can optionally have an expiration time:

  • If no expiration is set, the key remains valid indefinitely
  • Expired keys are automatically rejected by the API

API Key vs Account

FeatureAPI KeyAccount
AuthenticationBearer tokenEmail + password
Use caseMachine-to-machineHuman users
Session managementStatelessYes (with session tokens)
CreationAdmin onlyAdmin or self-registration
ExpirationOptional TTLNo (unless manually disabled)

Security Best Practices

PracticeDescription
Set ExpirationAlways set an expiration time for production API keys
Regular RotationEstablish a rotation schedule (e.g., every 90 days)
Least PrivilegeAssign only the permissions necessary for the key's purpose
Secure StorageStore API keys securely; never commit them to version control
Monitor UsageReview API key usage in audit logs regularly
Immediate RevocationDelete compromised keys immediately

Get Started

Last updated on May 7, 2026