context
Create or update a context entry
Save context (ICP, Messaging Playbook, user profile). POST is accepted as an alias for PUT on this path. Each write REPLACES the full content — merge new info with the existing entry first. Pass real newline characters, not escaped \n strings. If LITERAL_NEWLINE_IN_CONTEXT error, retry the same turn with real newlines. Each type takes exactly one scope shape and the server rejects the others, so read the scope field before writing. Save immediately when the user says save/remember; identity facts → type:"user-profile".
put/context
Request body
Response
Context saved