Endpoint
Authentication
Simple mode: no source block required
For solo builders, MVPs, small teams, and single-agent products, omit source. MemoryOS automatically creates internal event IDs, timestamps, and default provenance.
Request body
Fields
ConversationMessage
Multi-service mode: add provenance
Use source when multiple services can write memories for the same user. This is for Billing, Support, CRM, Product, or other backend services that may disagree and need source-of-truth routing.
For testing, you may start with one tenant API key and a source.service value. For production multi-service traffic, register service writers from the Tenant Dashboard and bind dedicated API keys so authority rules can be applied consistently.
Response: queued
add() is asynchronous. A queued response means MemoryOS accepted the request, not that a memory has already been stored.
Example response:
Job status fields
Working PowerShell polling example
Response: blocked by the quality gate
Possible blocked status values: L1, L2, L3, L4, and blocked.
Some conversations pass the quality gate but contain no durable memory. This is normal.
Examples:
- greetings
- acknowledgements
- one-session debugging instructions
- temporary UI instructions
- off-topic questions
Idempotency-Key
Use Idempotency-Key when your application may retry the same write request.
MemoryOS replays the same queued response for duplicate requests instead of creating a second job.
Related pages