List sessions
Return recent chat sessions, newest first. Optionally filter to a single ontology.The
session_id here is the same identifier the AI Agent chat endpoint accepts. Load a past session, then keep sending chat messages with that session_id to continue the conversation.Get a session
Load a single session along with all of its messages.roleisuser,assistant,tool, orsystem.contentmay benullon an assistant turn that only makes tool calls.tool_calls(assistant) is the raw OpenAI array; each hasid,type, andfunction: { name, arguments }whereargumentsis a JSON string.tool_call_id(tool role) links a tool result back to its call.- There is no persisted
thinkingfield — the reasoning stream is only emitted live over the agent chat response, not stored.
user and assistant (content) turns; tool rows are internal.
Returns 404 if no session with that ID exists.
Rename a session
Set a new title for a session. The title must be non-empty.404 if the session does not exist, or 400 if title is missing or empty.
Delete a session
Permanently delete a session and all of its messages.404 if the session does not exist.
