Endpoint
retention=session. Use it when an end-user finishes a conversation and you don’t want their inline data lingering.
How sessions work
Asession_id does two things in /v1/chat/completions:
- Threads multi-turn context across calls that share the same
session_id. - Scopes
retention=sessiondata — records / files / inlinehealth_contextwritten withretention=sessionlive only as long as the session.
DELETE /v1/sessions/{id} clears it sooner, on demand.
Python