v5

latestOpenAPI 3.0.02026-08-04258282491.7 KB
ContactMemory

Create or update a contact memory entry

Create or upsert a memory entry by name. Returns { ok: true, entries: <count after the write> }; invalid input returns 400 and an unknown session 404. Staff writes work even when the project's contact-memory feature is disabled.

post/sessions/{sessionId}/memory

Path parameters

sessionIdstring required

Headers

projectstring required

Request body

namestring required

Trimmed and truncated to 80 characters; the entry is keyed by this value.

descriptionstring

Optional. Omitting it clears the stored description on update (full replace). Truncated to 240 characters.

contentstring required

Required. Truncated to 4000 characters.

Response

Ok

okboolean required
reason'disabled' | 'no_userId' | 'invalid_input' | 'session_not_found'

Only set on internal (non-admin) calls; never present in an admin API 200 response.

consolidationEnqueuedboolean
entriesnumber double