Skip to main content
The GraphRAG endpoint is Ontora’s most powerful query primitive. It answers from the workspace knowledge graph, scoped to the campaign: semantic search over the campaign’s transcript passages and the sections of its attached documents, plus the verified organization facts about the people, departments, processes and tools those passages mention. One synthesis step turns that context into an answer with structured patterns and divergences; every cited organization fact is verified against its evidence before it is shown.
The examples use the US API host. For a workspace on eu.ontora.com, replace https://api.ontora.com with https://api.eu.ontora.com.

Anatomy of a query

Parameters

Response

Passage keys name the evidence: iturn:<turn id> is a transcript turn (served verbatim from the transcript store), section:<document id>#<index> an attached document section, and knowledge:fact:<id> an organization fact from the knowledge graph. A fact passage carries verification (supported, or unverified:<reason>); a fact whose evidence contradicts the answer is dropped from the answer, the patterns and the provenance before the response is returned. The endpoint answers in one response (no streaming).

Asking follow-ups

Pass the prior turns as conversation_history to keep context:

Anonymized output

For sharing externally, set "anonymize": true. Names are replaced with role-based identifiers (e.g., “an operations lead”) and email addresses are stripped from citations.

CLI

When the campaign isn’t ready

The query answers from the workspace knowledge graph, where a campaign’s responses are indexed as interviews complete. Until at least one response is indexed the route returns 409 Conflict with Campaign knowledge is not ready (status: …) — not_started (no completed interview yet), not_indexed (indexing still running), provisioning (the workspace graph is being set up), not_configured or failed. Check the status with:
The response reports status (ready once the query answers), conversations_total (completed interviews), conversations_ingested (indexed), conversations_failed and is_processing; /graph/status/stream delivers the same payload as server-sent events until it is ready or failed.