Skip to main content
Programmatic access to your Oleria workspace, secured with OAuth 2.0 Client Credentials. The Oleria API is a REST API - all endpoints use standard HTTP methods and return JSON bodies. Versioning is part of the URL path so breaking changes can ship without disrupting your existing integrations.

Environments

Your API base URL is shown in the API URL field when you create an OAuth application in Settings → Manage APIs. It follows the pattern:
Use this URL as the base for all API calls.

Authentication

The API uses the OAuth 2.0 Client Credentials grant. You exchange a client_id and client_secret for a short-lived JWT, then send it as a Bearer credential in the Authorization header on every request.
Tokens are typically valid for one hour. Cache the token in your client and refresh it just before expiry rather than minting one per request. See Generate an API Token for the full flow, response shape, troubleshooting, and rotation guidance.

Conventions

Errors

Oleria uses conventional HTTP status codes to indicate success or failure. Error responses include a stable JSON body with code and message fields you can branch on.

Rate limits

The Oleria API enforces per-tenant rate limits to protect platform stability. When you exceed your limit, the API returns 429 Too Many Requests with a Retry-After response header (in seconds). Implement exponential back-off in your client to avoid compounding pressure on the gateway.

Example request

Once you have an access token (see Generate an API Token), call the API by passing the token as a Bearer credential. For example, to start a CSV export of the identity inventory:

Next steps

Generate an API token

Walk through the OAuth 2.0 Client Credentials flow end-to-end, with troubleshooting and token-rotation guidance.
The full endpoint reference - request schemas, response shapes, and copy-ready samples - is in the sidebar under each API group below.

Contact us

For questions about the API, contact us at support@oleria.com.