What’s newRelease 13 · Dec 2, 2026From finding to fix: diagnoses, Ask Ollive and three new integrationsRead the changelog

API reference

The Ollive API.
Your agents’ record, in code.

Read what Ollive found from your own code: which rules your agents broke, why, and how often.

Base URL
https://api.ollive.ai/api
Authentication
Authorization: Bearer ollive_sk_…
Format
JSON over HTTPS

Make your first request

  1. Create an API key

    In Ollive, go to Admin → API keys and create a key. It is shown only once, so copy it before you close the window. More about keys.

  2. Save it as an environment variable

    Keep the key on your server, never in code that runs in a browser or an app.

    Terminal

    export OLLIVE_API_KEY="ollive_sk_…"
  3. List the agents Ollive monitors

    This request returns your agents. Each one has an id, which the other endpoints call agent_id.

    curl -X POST "https://api.ollive.ai/api/agents/query/v1" \  -H "Authorization: Bearer $OLLIVE_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "status": "active",    "limit": 10  }'
  4. See what Ollive found

    Pass an agent_id to List findings to see which rules the agent didn’t meet. To see why a run was flagged, use List results.

Key terms

AgentAn agent Ollive monitors. Its ID is the agent_id.
RunOne conversation between your agent and a person. You give it an ID, the run_id.
RuleSomething your agent must or must not do, such as identifying itself as automated. Its ID is the rule_id.
Rule setA set of rules an agent is checked against, drawn from a regulation, a framework or a contract.
ResultThe result of checking one rule in one run: met, not_met or inconclusive.
FindingOne agent not meeting one rule, across one or more runs.
PatternWhat the runs behind a finding have in common.

Endpoints

Agents

An agent is one Ollive monitors. Its ID is the agent_id you pass to the other endpoints.

Runs

A run is one conversation of one agent. See which runs Ollive checked, and read them turn by turn.

Rules

The rule sets your agents are checked against, and the rules in them.

How requests work

  • Every endpoint uses POST with a JSON body, even when it only reads data. IDs go in the body, not in the URL.
  • Your API key decides which account you are working in, so you never send an account ID.
  • Send only the fields an endpoint lists. Any other field returns a 400.
  • A request body can be at most 1 MiB.
  • Times are in UTC, written like 2026-10-14T09:00:00Z.
  • Reads over a period of time take start (included) and end (not included). Without them, you get the last 30 days.
  • To look up items by ID, use the list endpoint’s ID filter, such as agent_ids or run_ids.
  • If nothing matches what you asked for, you get an empty list, not an error.
  • Every endpoint only reads, so you can send a request again at any time.
  • Every response has an X-Request-Id header. Include it if you contact support.

Pagination

Endpoints that can return long lists send results one page at a time. Use limit to set the page size. If the response has has_more: true, send the same request again with cursor set to the next_cursor you got back. The last page has no next_cursor. To also get the number of matches across all pages, set include_total to true.

# First pagecurl -X POST "https://api.ollive.ai/api/runs/query/v1" \  -H "Authorization: Bearer $OLLIVE_API_KEY" \  -d '{"states": ["checked"], "limit": 100}' # Next pages: send the next_cursor you got back as cursorcurl -X POST "https://api.ollive.ai/api/runs/query/v1" \  -H "Authorization: Bearer $OLLIVE_API_KEY" \  -d '{"states": ["checked"], "limit": 100, "cursor": "<next_cursor>"}'

Where runs come from

Each run has a source: platform if Ollive collected it from a connected platform, or api or mcp if it was sent to Ollive, for example by your AI assistant through the Ollive MCP server.

Findings and metrics count the runs Ollive collected. To count the ones that were sent instead, set source to api or mcp. Runs, results and transcripts include all of them.