Skip to main content

Endpoint

Authentication

Request body

Fields

Response

Response schema

Top-level fields

Resolve a clarification in your existing chat

When clarification is present, show clarification.question in the same assistant conversation. Send the user’s selected answer back to MemoryOS; do not build a separate MemoryOS clarification screen and do not let the model rewrite the option into an authority decision.
Allowed answers are A, B, both, and neither. MemoryOS verifies the authenticated tenant, resolves external_user_id inside that tenant, checks the clarification’s owner, expiry and current status, locks the resolution records, and applies the governed conflict transition. A repeated or expired answer returns 409; a clarification belonging to another user or tenant is returned as 404.

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.