Authorization header as a Bearer token. You create and manage keys in the Flatkey console.
Header format
sk-fk-. Keys are case-sensitive and must be passed exactly as generated.
Example request
Creating an API key
- Sign in to console.flatkey.ai
- Click Keys in the left sidebar
- Click Create Key and enter a name
- Copy the key — it is shown only once
Authentication errors
Error response format
Security best practices
- Store keys in environment variables, not in source code
- Use one key per deployment environment
- Revoke keys immediately if compromised
- Rotate keys periodically for production workloads