Skip to main content
Flux uses API keys to authenticate requests. You can view and manage your API keys in the dashboard.

API Key Types

Test keys only work with test data and don’t trigger real webhooks or affect production resources.

Using Your API Key

Include your API key in the Authorization header:
Or use the SDK, which handles authentication automatically:
Keep your API keys secure. Never commit them to version control or expose them in client-side code.

Environment Variables

We recommend storing your API key in an environment variable:

Key Rotation

To rotate an API key:
  1. Create a new key in the dashboard
  2. Update your application to use the new key
  3. Delete the old key
Create a new key before deleting the old one to avoid downtime.

Scoped Keys

Enterprise plans support scoped API keys with limited permissions:
Available scopes:

Rate Limits

API requests are rate limited based on your plan: When rate limited, you’ll receive a 429 response with a Retry-After header.