Authorization: Bearer <key>.
Create a key
API keys live under Settings -> API Keys.1
Open the API Keys tab
In Settings, select API Keys. Existing keys appear in a table; click Create Key to add one.
2
Name the key and pick an environment
In the Create API Key dialog, fill in:
- Key Name: a descriptive label, for example
Production API Key. - Environment: Production or Staging. Production keys should only be used in production apps.
3
Copy the key now
The key is revealed once, under “API Key Created” with the warning “Copy your API key now. You won’t be able to see it again.” Click the copy button and store it somewhere safe, such as a password manager or an environment variable. Click Done when you are finished.
TODO: screenshot of the “API Key Created” dialog with the reveal-once key and copy button.
fp_live_1a2b3c4d...), its environment, when it was last used, and when it was created.
Key format
The first part of every key tells you its environment:- Production keys start with
fp_live_. - Staging keys start with
fp_test_.
Use the key in the SDK
Pass the key toFlowPilotConfiguration when you configure the SDK at launch. Do not hardcode a real key in source you commit; load it from your build configuration or a secret store.
Authorization: Bearer <key>. For the full request contract, see SDK REST API. For where the key fits in SDK setup, see Configuration.
Revoke a key
To revoke a key, click the trash action on its row. Confirm in the Revoke API Key dialog. Any app using that key immediately loses access, and the action cannot be undone. If a key is lost or leaked, revoke it and create a new one.Keys are workspace-scoped and of type
sdk. A single key works for every app in the workspace; the app is selected by the appId you pass to the SDK, not by the key.Common mistakes
- Committing a key to source control. Treat keys as secrets. Load them from environment variables or your secret manager, not a checked-in file.
- Using a dashboard token instead of an SDK key. Your Clerk dashboard session does not authenticate the SDK. Only an
fp_live_orfp_test_key works. - Using the wrong environment key for a build. A staging (
fp_test_) key in a production build, or the reverse, will not behave as expected. Match the key’s environment to the build. - Using a key from a different workspace than the app. The key and the app’s
appIdmust belong to the same workspace, or the resolve fails.