Skip to main content

Insights API

Synthesize an answer from accumulated memories in a space - unlike Search, which returns raw matching memories, Insights runs an agentic pass over the space and returns a synthesized response to your query.

Generate Insights

Request Body:
ParameterTypeRequiredDescription
space_idstringYesWhich space to synthesize from
querystringYesWhat you want to learn
Response (200 OK):
Python SDK:
client.insights() returns the synthesized string directly (or None if nothing was found).

How It Works

Insights is read-only - it doesn’t write new memories. It runs a multi-step lookup (recalling facts, expanding context, searching observations) internally and returns a single synthesized answer rather than a ranked list. Quality improves as more relevant memories accumulate in the space.

Error Responses

StatusCodeCause
400bad_requestMissing query or space_id
401unauthorizedMissing/invalid API key
403forbiddenSpace not owned by your org
404not_foundSpace doesn’t exist
429rate_limitedQuota or rate limit exceeded
See the full error reference.

Next Steps

Search API

Query memories for specific information

Spaces API

Manage memory spaces