Get user context

Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.

Path parameters

threadIdstringRequired

The ID of the current thread (for which context is being retrieved).

Headers

AuthorizationstringRequired

Header authentication of the form Api-Key <token>

Query parameters

minRatingdoubleOptional
The minimum rating by which to filter relevant facts.
modeenumOptionalDefaults to summary
Defaults to summary mode. Use basic for lower latency
Allowed values:

Response

OK
contextstring or null

Context block containing relevant facts, entities, and messages/episodes from the user graph. Meant to be replaced in the system prompt on every chat turn.

Errors