key_id and a key_secret.
API key format
The
key_id identifies your account. The key_secret is the password — you can reveal it again at any time from the API Keys page in the dashboard, so treat it like a database password.
Sending requests
Every API request must include anAuthorization header in this exact format:
Creating keys
In the dashboard:1
Go to API Keys
Open app.nixflex.com → API Keys.
2
Create a new key
Click Create new key, name it (e.g. “Production”, “Staging”).
3
Copy your key
Copy the full key into your secrets manager. If you lose it, you can reveal it again from the API Keys page.
POST /v1/keys. See Create API key.
Security
Best practices:- Store keys in environment variables or a secrets manager (1Password, AWS Secrets Manager, etc.)
- Use separate keys for development, staging, and production
- Rotate keys after team members leave
- Revoke compromised keys immediately from the dashboard
Failed authentication
If your key is wrong, missing, or revoked, the API returns401 Unauthorized:
- The
Authorizationheader is present - The format is
Bearer key_id:key_secret(note the colon, not a space) - The key has not been revoked in the dashboard
- You are sending it to
api.nixflex.com, not the engine’s internal hostname