Key format
FlexOrch API keys always start with thedfx_ prefix, followed by a random string:
Generating a key
Sign in to app.flexorch.com and navigate to Settings → API Keys.
Click Generate New Key. You can optionally give the key a label (for example,
production or ci-pipeline) to help you track which key belongs to which environment.Using a key
Pass your API key in theX-API-KEY request header:
Revoking a key
If a key is compromised or no longer needed, revoke it immediately:
Revoked keys stop working immediately — there is no grace period. Any service using the revoked key will start receiving
401 Unauthorized responses. Issue a replacement key before revoking if you need to maintain continuity.
Security best practices
Follow these practices to keep your API keys secure:- Use environment variables. Never hard-code keys in source files. Load them from the environment at runtime instead.
- One key per environment. Use separate keys for development, staging, and production. This limits the blast radius if one key is compromised and makes it easy to rotate without affecting other environments.
- Rotate periodically. Generate a new key, update your configuration, verify it works, then revoke the old one.
- Add
.envto.gitignore. If you store keys in a local.envfile, ensure that file is never committed to version control.
Rate limits
All API key requests are subject to plan-based rate limits measured in requests per minute (RPM).| Plan | Rate Limit |
|---|---|
| Trial | 60 RPM |
| Starter | 60 RPM |
| Pro | Higher — contact sales |
| Enterprise | Custom |
429 Too Many Requests. Check your current usage and the time until the limit resets by calling:
429 response, wait for the number of seconds in reset_in_seconds before retrying. If you use the FlexOrch Python or JavaScript SDK, exponential backoff and retry handling are built in automatically.