API keys
Per-organization secrets that give the SDK access to your flags. Treat them like passwords.
Creating a key
- 1Go to Settings → API KeysYou'll see all active keys for your organization.
- 2Click "Create key"Give it a descriptive name like "Production" or "Staging SDK".
- 3Copy the key immediatelyIt is shown only once. If you miss it, you'll need to create a new one.
- 4Add it to your environment variablesStore it as
VEXIL_API_KEYin your app's environment. Never commit it to source control.
API keys are shown in full only at creation time. Store them in a secrets manager or your deployment platform's environment variable system — not in
.env files that might be committed.Using a key in the SDK
Revoking a key
Click Revoke next to a key to immediately invalidate it. Any SDK instance using that key will fall back to configured default values. To rotate a key safely:
- Create a new key.
- Update your app's environment variable to the new key and redeploy.
- Revoke the old key once traffic has shifted.