Auth & Tokens
Every /ox-api call takes a Bearer JWT. A key carries your identity, your workspace, the rights picked
for it, and an expiry.
Which tokens a workspace takes depends on its API mode, set in the API Manager: Team (the default) takes
team keys, App Identity turns them away and takes tokens from an App Identity you trust, and Hybrid takes
both. The tokens, the x-oi-workspace header and the job token swap are on
Call the API from your app.
Get a token
Generate under APIs -> API Keys: pick an expiry, pick the rights the key carries, Generate JWT, copy once. A key never carries more than your own rights, and it is checked against your current rights on every call.
| Expiry | Good for |
|---|---|
| 15 minutes | quick CLI tests |
| 1 hour | short automation |
| 8 hours | a workday |
| 24 hours | daily rotation |
| 7 days | a temporary integration |
| 30 days | a long-lived service |
| 90 days | the longest a key may live |
You can also enter a custom duration of up to 90 days.
curl -X GET 'https://openx.fathym.com/ox-api/warm-queries/{lookup}' \
-H 'Authorization: Bearer YOUR_TOKEN'
Scopes (least privilege)
A token's access rights come from your account and workspace. Request a subset for an integration so it can do only what it needs - a token can never exceed your own rights.
What's enforced on every call
- Authentication - no valid token,
401. The 401 is the same plain answer whatever the reason; see API refusals. - Access rights - outside your rights,
403. A caller from an App Identity is refused route by route (OXAPI_REQUIRED_RIGHTS_MISSING, with theMissingRights); for a team key the API notes a route's rights but does not yet refuse on them, and each route's own checks still apply. - Governance-filtered surface -
GET /ox-api/openapilists only the endpoints your rights permit; you see what you can actually call. - Change history - once Provenance is set up, saved changes to tracked records are recorded; API and MCP calls themselves are not (see what is and is not recorded).
- Encrypted credentials - connection credentials are stored encrypted and never returned in responses or logs.
Building over MCP stays human
Any AI can read your warm queries and propose changes over MCP, but accepting stays in the workspace - there is no accept tool over MCP, by design. See Bring Any AI.
Limits
Per-query caps apply (see REST API). There is no per-request rate limiting today.
Revoke
Revoke a key from APIs -> API Keys with Revoke; it is refused on its next call. Rotate regularly; use env vars; never hardcode tokens.
Clients
Call the API with cURL or any HTTP client, or connect an AI over MCP. There is no OpenX SDK today.
On fathym.com: OpenX →