Getting started
Authentication
Every request carries a secret key in the Authorization header. A key belongs to exactly one firm.
Authorization: Bearer prv_live_3kV9…Keys start with prv_live_ and are 41 characters long. A request without a key, or with a key that is wrong or revoked, gets 401 unauthorized. The API has no sessions, cookies or OAuth flow, and it does not answer browsers across origins: call it from your servers.
Creating and revoking keys
- Only firm admins can create, see or revoke keys, in the platform under API keys.
- The secret is shown once, when the key is created. Provarion stores only its SHA-256 hash and its first 13 characters, so the list can tell keys apart.
- Revoking a key takes effect on the next request. Revoked keys stay listed so you can see what existed.
- The list shows when each key was last used, to the minute.
- A firm can hold up to 20 active keys. Use one per system so each can be revoked on its own.
What a key can reach
A key reads and writes only its own firm's briefs, people and outcomes. That boundary is enforced inside the database, not only in the API code: the API connects without any database privileges of its own, and each request can only call functions that resolve the key to its firm first. There is no administrative key that sees more than one firm.
Keeping keys safe
- Keep keys in a secret manager or environment variable, never in source control or in code that runs in a browser.
- If a key is exposed, revoke it in the platform and create a new one. Tell us at roccos@provarion.ai if you think data was reached with it.