Authentication
Every request to the InfinityBlue API must include a Bearer token in theAuthorization header. The token is tied to your account and is used for billing, rate limiting, and access control.
Get your API key
Sign in
Open the InfinityBlue dashboard and sign in with your account.
Open the API keys page
Navigate to Settings → API Keys. The page lists every key that belongs to your workspace, along with its creation date and last-used timestamp.
Pass the key in a request
The key goes in theAuthorization header using the Bearer scheme:
Key security best practices
- Load keys from environment variables or a secret manager. Never commit them to git or paste them into source files.
- Use a different key per environment (development, staging, production) so you can revoke one without breaking the others.
- Rotate keys on a fixed schedule and immediately after any suspected leak.
- Apply IP allowlists or origin restrictions when the dashboard supports them for your plan.
- When working in shared notebooks, redact the key from cell output and clear it from kernel memory at the end of the session.
Troubleshooting
If you receive a401 Unauthorized response, walk through this checklist:
Confirm the header is present
The request must include
Authorization: Bearer YOUR_API_KEY (note the space after Bearer). Without the scheme prefix, the server treats the header as malformed.Confirm the key is active
A revoked or deleted key returns the same
401 error. Re-check the API keys page in the dashboard.