Add memories

View as Markdown

Send conversational turns or raw text. XTrace extracts facts, episodes, and artifacts, then stores them in the user’s encrypted KB. When async_mode is true (default), returns queued event stubs.

Authentication

AuthorizationBearer
XTrace API key as Bearer token.

Request

This endpoint expects an object.
user_idstringOptional
Scope memories to this user.
agent_idstringOptional
messageslist of objectsOptional

Conversation turns for inference-based extraction.

memorystringOptional
Raw text when not using conversational inference.
metadatamap from strings to anyOptional
inferbooleanOptionalDefaults to true
Run XTrace extraction pipeline before storing.
async_modebooleanOptionalDefaults to true
Return immediately with event stubs.
output_formatenumOptionalDefaults to v1.1
Allowed values:

Response

Memories queued or persisted
resultslist of objects

Errors

400
Bad Request Error
401
Unauthorized Error