Access and the call log
Everyone and everything that calls your API is either a person or an API key, and each gets permissions per artifact. Every call is logged.
People
People join a company by invitation. Admins manage people, keys, services and artifacts; members use what they're given. Being an admin gives no data access by itself: admins need permissions like everyone else, so an admin who sets up the Invoice flows can't read invoices through the API unless someone grants that.
API keys
- An API key is a named identity for a system: "Webshop", "Power BI", "Nightly payments". It has its own permissions and appears under its own name in the call log.
- Rolling a key makes a new secret while the old one keeps working for a time you choose (immediately, 1 hour, 24 hours or 7 days), so a system can switch without downtime.
- Personal API keys let a person run scripts as themselves, with their own permissions. They expire within 90 days and stop working the moment the person is removed.
- Keys are shown once. OneAPI keeps only a fingerprint, so a lost key is replaced, never recovered.
Permissions
Each person and API key gets up to three letters per artifact:
| Letter | Allows |
|---|---|
| R READ | Reading and listing: GET and QUERY |
| W WRITE | Creating and updating: POST and PUT. Includes READ. |
| D DELETE | DELETE. Includes READ. |
| Invoice | Customer | Order | |
|---|---|---|---|
| Webshop API key | RWD | RWD | RWD |
| Power BI API key | RWD | RWD | RWD |
| Maria Bookkeeping | RWD | RWD | RWD |
/api/customer/ answers 404, exactly as for an
artifact that isn't there. Power BI can read everything and change nothing: a write answers 403.- No permission: 404. Callers can't even find out which artifacts exist. The wrong letter: 403.
- Parts follow their parent. Whoever may write invoices may write their lines.
- Changes apply at once. The very next request after you remove a permission, roll a key or remove a person sees the change.
Removing someone
Remove a person from the company and, in one step, their permissions are gone and their personal API keys stop working. They never held a vendor key, so there's nothing to rotate at e-conomic, HubSpot or anywhere else.
Company sign-in
A company can connect its own OpenID Connect provider (Microsoft Entra ID, Google Workspace, Okta…) under Sign-in. Then:
- People sign in to OneAPI with their work account. Signing in never makes anyone a member: invites still decide who's in.
- An admin can make it required at the company's domains, so OneAPI passwords stop working there.
- Optionally, personal API keys stop when their owner hasn't signed in through the provider for 30 days, so closing someone's work account also stops their scripts.
- Callers can use a token from the provider instead of a OneAPI key. A system's own token is matched to one of the company's API keys and gets its permissions.
The call log
Every call is logged: who called, which artifact and operation, the answer's status and time, and each call OneAPI made at the services (service, operation, path template, status, time).
- Metadata only. Never the bodies, field values, or ids in paths: the log shows that Maria deleted an invoice, not which one or what was on it.
- Admins see every call; members see their own. Test runs from the flow editor are marked as tests.
- Changes to the setup (people, keys, permissions, services, published artifacts) are kept separately under History.