Overview
The ElasticFunnels API uses API keys for authentication. Each API key is tied to a specific user and project (brand), inheriting all the permissions of that user for that project.Generating an API Key
- Navigate to your project dashboard
- Go to Settings → API
- Click Generate API Key
- Copy and securely store your API key
You can regenerate your API key at any time, but this will immediately invalidate the old key. Make sure to update any integrations using the old key.
Using Your API Key
Include your API key in the request header using theEF-Access-Key header:
cURL
JavaScript
Python
PHP
Authentication Errors
If authentication fails, you’ll receive one of the following responses:Invalid API Key
401 Unauthorized
No Brand Access
401 Unauthorized
This error occurs when:
- Your API key is valid but doesn’t have access to the specified brand/project
- You’re trying to access a project you’re not a member of
Missing API Key
If you don’t include theEF-Access-Key header, you’ll be redirected to the login page (for browser requests) or receive a 404 error (for API requests).
API Key Scope and Permissions
Your API key inherits all permissions from your user account for the specific project.
- User-specific: Each key is tied to your user account
- Project-specific: Each key is tied to a specific project (brand)
- Permission-aware: Your API requests have the same permissions as your user role (Owner, Admin, Editor, etc.)
Example Permission Scenarios
Owner/Admin: Full access to all endpoints including team management, billing, and settings Editor: Access to content management endpoints (pages, products, funnels) but not billing or team management Viewer: Read-only access to analytics and contentBest Practices
Rotate Keys Regularly
Regenerate your API keys periodically for enhanced security
Use Environment Variables
Store API keys in environment variables, never in your codebase
One Key Per Integration
Use separate API keys for different integrations to easily revoke access
Monitor Usage
Keep track of which integrations use which keys
Regenerating Your API Key
If your API key is compromised or you need to revoke access:- Go to Settings → API
- Click Regenerate API Key
- Confirm the action
- Update all integrations with the new key
Testing Your Authentication
You can test your API key with a simple GET request to retrieve your brand details:200 OK status.