https://router.flatkey.ai/v1. You create and manage keys from the Keys section of the console. You can create multiple keys — one per environment, application, or team member — and revoke any key instantly if it is compromised.
Creating a key
1
Open the Keys page
Log in to console.flatkey.ai and click Keys in the left sidebar.
2
Click Create Key
Enter a descriptive name for the key. Choose something meaningful like
production-api, staging-test, or john-dev. The name is only visible to you.3
Copy and store the secret
The full key (starting with
sk-fk-) is shown only once. Copy it immediately and store it in a secrets manager, password manager, or environment variable. You cannot retrieve it again after closing the dialog.Best practices
- One key per environment: Use separate keys for development, staging, and production. If a key leaks, you can revoke just that environment without affecting others.
- Descriptive names: Include the environment and purpose (e.g.,
prod-customer-chatbot,dev-local). - Use environment variables: Never hardcode keys in source code. Use
FLATKEY_API_KEYas the variable name. - Rotate regularly: Revoke and replace keys on a regular schedule, especially for production workloads.
Viewing your keys
The Keys page lists all your active keys with:- Key name
- Creation date
- Last-used timestamp
- Masked key prefix (e.g.,
sk-fk-****abcd)
Revoking a key
To revoke a key, click the Delete (trash) icon next to it on the Keys page. Revocation is immediate — any request using that key will immediately receive a401 Unauthorized response. There is no soft-delete or grace period.