Generate an API key
1
Open the Developers section
In the Foff dashboard, click Developers in the navigation bar. This is where all your API keys are created and managed.
2
Generate a new key
Click the Generate API Key button. Foff will create a new key and display it in a modal.
3
Copy the key immediately
Copy the key and store it in a secure location — such as a password manager or your environment’s secrets manager. Once you close the modal, the full key value is never displayed again.
Use your API key
TypeScript / JavaScript SDK
Pass the key to theConfig constructor using the APIKey field. Always read it from an environment variable rather than embedding it in your source code.
Store keys securely
Never hardcode an API key in your source code or commit it to version control. Instead:- Set it as an environment variable (
FOFF_API_KEY) in your deployment environment. - Use a secrets manager (e.g., AWS Secrets Manager, HashiCorp Vault, or your CI/CD platform’s built-in secrets store) to inject the value at runtime.