Retrieve Agent Memory

Retrieve the memory state of a specific agent. This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.

Path parameters

agent_idstringRequired

Headers

AuthorizationstringRequired

Header authentication of the form Bearer <token>

Response

Successful Response
blockslist of objects

Memory blocks contained in the agent’s in-context memory

agent_typeenum or string or null
Agent type controlling prompt rendering.
file_blockslist of objects or null

Special blocks representing the agent’s in-context memory of an attached file

prompt_templatestring or nullDefaults to
Deprecated. Ignored for performance.

Errors