Account & API Keys
An API key represents access to your account. Give each application its own key to make usage tracking, rotation and incident response easier.
Create a key
- Sign in to Flex247.
- Open API Keys.
- Choose a descriptive name such as
MacBook-CodexorProduction-Store. - Set the group, model restrictions and quota when required.
- Create the key and store the complete value immediately.
Authentication headers
OpenAI Compatible requests use a Bearer token:
http
Authorization: Bearer sk-your-flex247-keyAnthropic Protocol requests can use:
http
x-api-key: sk-your-flex247-keyRecommended practices
- Use different keys for development, staging and production.
- Never embed keys in browser code, mobile apps or public repositories.
- Load keys through environment variables or a server-side secret manager.
- Disable a suspicious key before creating its replacement.
- Review Usage Logs to verify models, token usage and charges.
Rotate a key without downtime
- Create a replacement key.
- Update the application.
- Send a test request and check its usage log.
- Disable the old key only after its traffic has stopped.
Teams and devices
Avoid sharing one key across people or services. Per-user and per-service keys make ownership and troubleshooting clear.