Context
Inspecting Context Relations
See and explore relationships that create the brain for your AI.
GET
This endpoint queries entity-and-relationship triplets extracted from your ingested content.
Pass
id to scope to a single ingested item, or omit it to return all relations in the collection. Set type=memory to inspect a memory’s relations. Pagination handles large result sets.
Query parameters
Pagination pattern
Some additional notes
Cursor opacity.
next_cursor is opaque (currently a numeric score). Don’t construct it client-side or assume meaning - pass back exactly what the server returned.- Collection-wide queries: Omitting
idreturns relations across the entire collection. This is useful for full-graph exports; pair with a smalllimitand paginate. - Knowledge vs memory: If the
idbelongs to a memory, settype=memory; otherwise the endpoint searches the Knowledge graph. The two graphs are completely separate. - Ordering: Treat
data.relations[]as ranked by relevance within the response. Preserve order for display or LLM context, but do not compare ordering across unrelated queries as an absolute signal. - Graph completeness: Source relations only fully populate once the source’s
indexing_statusreachescompleted. Items ingraph_creationare searchable but their relations may still be in flight. timestampformat differs by endpoint. On this endpoint each relation’stimestampis an ISO-8601 string (e.g.2026-05-12T08:14:00Z). The same relations surfaced as passthrough on Query (ingraph_context) and List Documents carrytimestampas a Unix epoch float (seconds) instead. Normalize before comparing relation timestamps across endpoints.
Authorizations
API key sent as a Bearer token: "Bearer prefix.secret"
Query Parameters
Database (canonical name for the tenant scope)
Example:
"acme_corp"
Collection (canonical name for the sub-tenant scope)
Example:
"team_docs"
Deprecated alias for database
Example:
"tenant_1234"
Deprecated alias for collection
Example:
"sub_tenant_4567"
Source ID (omit for database-wide relations)
Example:
"HydraDoc1234"
Corpus type: 'knowledge' or 'memory'
Available options:
knowledge, memory Max relations to return
Pagination cursor