v1

latestOpenAPI 3.1.02026-07-17204239.3 KB

List Sessions

List all sessions

get/v1/session/list

Response

Successful Response

idstring

Session unique ramdom identifier.

user_idstring required

The user ID this session belongs to.

org_idstring required

The organization ID this session belongs to.

ttlinteger required

The time to live of the session in seconds.

languagestring

The iso-code of the session language.

turnsinteger

The number of turns in the session.

namestring required

Human readable session name.

descriptionstring required

A brief description to help users remember what the session is about.

create_timenumber

The Unix timestamp of when the session was created.

update_timenumber

The Unix timestamp of when the session was last updated.

num_messagesinteger

The number of messages in the session.

can_logboolean

Whether the session can be logged or not.

state'undefined' | 'start' | 'end' | 'query' | 'running_agent' | 'agent_done' | 'coding' | 'code_result' | 'calling_tool' | 'tool_result' | 'generating' | 'answering' | 'thinking' | 'planning' | 'reviewing' | 'understanding' | 'retrieving' | 'grounding'