Minimum string length: 1 Maximum string length: 65536
Memory
Remember a fact
Remember a fact.
Adds one entry to your MEMORY store (or your USER profile with scope: "user"). Saving text that is already stored is a 200 no-op. A refused write (the store is full, or the text matches a threat pattern) is 422 memory_rejected with the current entries to consolidate.
Authorizations
Authorization: Bearer ozk_…. ozk_ platform API key (Authorization: Bearer ozk_…)Body
application/jsonAvailable options: memory, user
Default: memory
Available options: json, yaml, markdown, text
Response
The same text was already stored: nothing was added, the existing entry comes back. Response format negotiates via the format field, an Accept header (application/json, text/yaml, text/markdown, text/plain), or the request Content-Type mirror; default JSON.
application/jsontext/yamltext/markdowntext/plain
Example: "mem_3f9a1c2b7d40"
Available options: memory, user
Saved. Response format negotiates via the format field, an Accept header (application/json, text/yaml, text/markdown, text/plain), or the request Content-Type mirror; default JSON.
application/jsontext/yamltext/markdowntext/plain
Example: "mem_3f9a1c2b7d40"
Available options: memory, user
invalid_json — body is not valid JSON
application/json
unauthorized — missing, invalid or revoked ozk_ key
application/json
not_found — no route for this method on this path: every other method answers it
application/json
invalid_params (text or scope) · memory_rejected (store full or blocked text; carries current_entries)
application/json