Every Reporting API request must carry anDocumentation Index
Fetch the complete documentation index at: https://docs.montereyfinancial.dev/llms.txt
Use this file to discover all available pages before exploring further.
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:| Status | When | Body |
|---|---|---|
401 Unauthorized | Missing / malformed / unknown / revoked / expired key | {"detail": {"error_code": "missing_token" | "invalid_token"}} |
403 Forbidden | ?organization_id=X where X is not in the key’s allowlist | {"detail": {"error_code": "organization_out_of_scope"}} |
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.