The Formbricks API uses API keys to authenticate requests. You can view and manage your API keys in the Formbricks Dashboard under Settings > API Keys.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formbricks/formbricks/llms.txt
Use this file to discover all available pages before exploring further.
API Key Types
Formbricks supports two types of API keys:V2 API Keys (Recommended)
The newer, more secure API key format with improved security features:- Starts with
fbk_prefix - Uses bcrypt hashing with SHA-256 lookup
- Provides better protection against timing attacks
Legacy API Keys
Older API key format using SHA-256 hashing. Both formats are supported, but V2 keys are recommended for new integrations.Authentication Methods
API Key Authentication
Include your API key in thex-api-key header:
Your Formbricks API key
Session Authentication
For browser-based requests from logged-in users, session cookies are automatically used when no API key is provided.API Key Permissions
API keys can have different permission levels:| Permission | Access Level |
|---|---|
read | Read-only access to resources |
write | Create and update resources |
manage | Full access including delete operations |
Environment Scoping
API keys are scoped to one or more environments. When making requests:- Management API: The API automatically uses environments the key has access to
- Client API: Specify the
environmentIdin the URL path
Security Best Practices
- Use V2 API keys for new integrations
- Rotate keys regularly to minimize exposure risk
- Use environment variables to store keys securely
- Scope keys appropriately - only grant necessary permissions
- Monitor key usage via the lastUsedAt timestamp
Checking Your Access
Use the/api/v1/management/me endpoint to verify your API key and check access: