Write Session Relationship Context
Append developer-owned relationship context for one session.
This is a typed writeback layer for product facts such as “founding friend” or
“inner circle”. It is deliberately NOT canon/persona mutation: the data is
stored as a session context event, bounded by TTL, and then consumed through the
same speakable/private/forbidden lanes as POST /context-events.
Authentication
AuthorizationBearer
LoreOS API key, sent as Authorization: Bearer <key>.
Path parameters
session_id
Request
This endpoint expects an object.
relationship_label
Optional app-side label such as founding_friend or inner_circle.
speakable_relationship_facts
Relationship facts the character may say if relevant.
private_relationship_context
Planning-only relationship context; never spoken directly.
forbidden_to_reveal
Hard constraints the reply must not reveal or imply.
memory_candidates
Optional relationship memories to propose to the memory pipeline.
ttl_seconds
How long this context should shape replies. Default is about 10 minutes.
priority
Ranking when multiple context events are active.
idempotency_key
Response
Successful Response
Errors
422
Unprocessable Entity Error