Minerva is the single entry point. The only credential you need is your API key.
Where to get your API key
Create a Personal or Organization API key in the Minerva app under Settings → API. See Create an API key for the steps. Copy and store the key when it is shown; the full key is shown only once.Use it
Resolution order
1
Constructor argument
2
Environment variable
MINERVA_API_KEYMinervaAuthError("no API key (set MINERVA_API_KEY or pass api_key=).").
Static egress IPs
Outbound traffic Minerva sends to your endpoints — activation pushes, webhooks, any Minerva-initiated callback — originates from a fixed set of static IPs. If your security team needs to allowlist third-party inbound traffic, allow these three addresses:You do not need to allow these IPs for your SDK calls to reach
api.minerva.io — outbound HTTPS from your side works without any
allowlist. The list above only matters for traffic Minerva sends to
your systems (activations / webhooks). If you don’t receive
Minerva-initiated traffic, you can skip this.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.
Replacing your key
- Create a new Personal or Organization key under Settings → API.
- Update
MINERVA_API_KEYin your deployment or secret store. If you passapi_key=directly, update that value instead. - Restart the process so a new
Minerva()uses the new value, and check that an API call succeeds. - Once the new key works, revoke the old key in the app.
Errors you might see
See Error handling for the full hierarchy.