When you need an API key
An API key is required for the Feature Flags SDK endpoint (GET /api/flags/:recordId). It is also accepted on every other project-scoped endpoint (/api/projects/:projectId/…) as an alternative to a session cookie — handy for scripts and CI. Mock endpoints and webhook inboxes are public per-project URLs, reachable via your project’s subdomain without any authentication.
Creating an API key
1
Open your project
In the dashboard, navigate to the project you want to create a key for.
2
Go to Feature Flags
Select Feature Flags from the project navigation.
3
Open the API Keys tab
Click the API Keys tab within the Feature Flags section.
4
Create the key
Click Create Key, give the key a name, and confirm. The full key value is displayed once immediately after creation.
Using your API key
Pass the key in theAuthorization header as a Bearer token.
curl
record-id with the ID of the record you want to evaluate flags for.