Skip to main content

Endpoint

Authentication

Request body

Fields

Response

Response schema

Top-level fields

MemorySearchResult

Send retrieval feedback

Feedback is optional but recommended. It closes the quality loop after your agent uses retrieved memory. Use it when:
  • the retrieved context helped the agent answer correctly
  • the agent ignored a memory because it was not useful
  • the user corrected the agent
  • the agent had to ask for clarification because context was missing

Successful use

User correction

Example response:
correction_job_id means MemoryOS queued an async retrospective extraction pass. It does not block the user response.

format examples

The format value controls how MemoryOS renders both context_snippet and system_prompt_addition.

bullets

json

xml

Context token limit

Use context_max_tokens to limit the size of system_prompt_addition.
MemoryOS drops lower-importance memories first when the context is too large. It does not truncate mid-sentence.

Domain-aware retrieval

If a tenant has a domain schema enabled, the same retrieve endpoint returns domain-aware context in system_prompt_addition. For example, an EdTech tenant may receive tutoring context about exam goals, weak topics, learning style, or forgetting-stage review urgency. The request shape does not change:
Use optional domain profile endpoints only when you need structured UI data, not for normal model calls.