stream_events requires /mcp/full; timeline read tools are available on
all four HTTP profiles. Authenticate every protected HTTP/SSE connection and
retain the same authorized space when reusing cursors. HTTP examples below
assume explicit local SKIP_AUTH development.
Stream system events
System events track internal operations like document ingestion, assertion extraction, and entity creation. Usestream_events with a cursor for reliable, ordered consumption.
1
Start from the beginning
For MCP, use cursor Tool:
"0" or omit it. For REST, omit the cursor on the
first request and then reuse the opaque value returned by that endpoint;
MCP and REST cursors have different encodings.- MCP Tool
- curl
stream_events2
Save the next cursor
The MCP data envelope includes
next_cursor and has_more. Store the
cursor after successfully processing the batch. The following is a
schematic MCP response; REST cursors are opaque encoded strings.3
Poll for new events
On your next call, pass the saved cursor to resume where you left off.Tool: Drain REST pages while
- MCP Tool
- curl
stream_eventshas_more is true. The REST JSON endpoint can
return a null cursor when the page is exhausted; do not replace a saved
checkpoint with null. For continuous REST consumption, prefer
/v1/events/sse and persist its emitted resume cursor.Receive system events over SSE
REST clients that want a persistent connection can use the SSE endpoint:List recent domain events
Domain events represent real-world occurrences extracted from documents (e.g., “Product launch on March 15”). Uselist_recent_events to see the latest.
- MCP Tool
- curl
list_recent_eventsSet
include_candidates to true to also see events that have not yet been approved. By default, only approved, superseded, and rejected events are returned.List upcoming events
Query future domain events within a time window. Useful for reminders and forecasting.- MCP Tool
- curl
list_upcoming_eventsdays parameter accepts values from 1 to 365.
Search domain events
Search events by text query, status, or associated entities.- MCP Tool
- curl
search_eventsFilter by status
Restrict results to specific event statuses.candidate, approved, superseded, rejected.
Filter by entity
Find events associated with specific entities. Usemode to control matching.
Get a single event
Retrieve full details for a specific domain event by ID.- MCP Tool
- curl
get_eventAdvanced: cursor-based consumption pattern
Advanced: cursor-based consumption pattern
For resumable event consumption:
- Store the last processed
next_cursorin your application state - On startup, resume from the stored cursor
- Process events in order, updating the cursor after each batch
- When
has_moreisfalse, wait before polling again
Next steps
- Ingesting data — Feed documents to generate events
- Truth slots — Inspect how assertions from events resolve
- Searching — Query across all record types
