Skip to main content
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_KEY
If neither is set, the first call raises MinervaAuthError("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 the x-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

  1. Create a new Personal or Organization key under Settings → API.
  2. Update MINERVA_API_KEY in your deployment or secret store. If you pass api_key= directly, update that value instead.
  3. Restart the process so a new Minerva() uses the new value, and check that an API call succeeds.
  4. Once the new key works, revoke the old key in the app.
Creating a new key does not revoke the old one. It remains active until revoked or expired. Revocation cannot be undone; access may continue briefly while it takes effect.

Errors you might see

See Error handling for the full hierarchy.