Authorization: Bearer <key> header. The key resolves to a set of organization IDs the request is allowed to see; absence of authorization or a key that resolves to no orgs is rejected with 401.
The Bearer header
Organization scoping
When the portal mints a key, an operator picks a set of organization IDs the key is allowed to see. Two patterns are common:- All-of-customer: one key covers every organization record a customer has registered with Monterey.
- Subset: a key sees only the orgs a particular team within the customer is responsible for.
401 vs 403
The Reporting API uses two distinct status codes:
Lookups by resource ID —
/accounts/{id}, /payment-methods/{id}, /autopay/{id} — behave differently: an ID outside the key’s scope returns 404, the same as an ID that doesn’t exist. The API deliberately doesn’t distinguish the two, so a key can’t probe for the existence of resources it isn’t allowed to see.
Rotating a key
Treat the key like a password. When you need to rotate:- Mint a new key in the portal — choose the same organization allowlist.
- Update your integration to use the new key.
- Revoke the old key in the portal. Revoked keys begin returning
401immediately.