403 Forbidden.
Mint a key
Open the dashboard
Sign in at agents.nanonets.com and select the workspace
you want the key scoped to.
Create the key
Go to Settings → API Keys and click Create API key. Give it a descriptive
label — you’ll want to know what it’s used for when you rotate.
Send the key
Include it in theAuthorization header on every request:
Failure modes
| Status | Cause | Fix |
|---|---|---|
401 Unauthorized | Authorization header missing | Add the header |
401 Unauthorized | Header is not Bearer <key> | Fix the format |
401 Unauthorized | Key was revoked or never existed | Mint a new key |
403 Forbidden | Key is valid, but the agent/task belongs to a different workspace | Use a key scoped to the correct workspace |
Security
- Rotate keys at least every 90 days.
- Revoke a key immediately if you suspect it has leaked. Existing in-flight tasks finish; subsequent requests fail.
- Scope per environment: mint separate keys for production, staging, and local development. Don’t share keys across them.