Minerva is the single entry point. The only credential you need is your API key.
Where to get your API key
Sign in
Log in at app.minerva.io (not available on the free tier).
Use it
| Variable | Used for |
|---|---|
MINERVA_API_KEY | every call the SDK makes |
Resolution order
If neither is set, the first call raisesMinervaAuthError("no API key (set MINERVA_API_KEY or pass api_key=).").
How it’s sent
The SDK sends the API key as thex-api-key header on every request. There’s
no token exchange, no session state, no rotation handled by the SDK — your
long-lived API key is the only credential. The server-side authorizer decides
what your key is entitled to.
Rotating your key
Rotate your key in the Minerva web app. Once rotated:- The old key continues working for the documented grace period (check your plan)
- Update
MINERVA_API_KEYin your deployment / secret store - Restart the process so a fresh
Minerva()picks up the new value
Errors you might see
| Error | Meaning |
|---|---|
MinervaAuthError("no API key …") | Neither api_key= nor MINERVA_API_KEY set |
MinervaAuthError from a server response | 401 / 403 — your key is invalid, revoked, or not entitled to the endpoint you called |
MinervaRateLimitError(retry_after=…) | 429 — you’re rate-limited; back off and retry |