Sitzungen auflisten oder durchsuchen
GET
/v1/sessions
const url = 'https://example.com/v1/sessions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/sessions \ --header 'Authorization: Bearer <token>'Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Query Parameters
Abschnitt betitelt „Query Parameters“q
string
Freitextsuche über Titel und Nachrichteninhalte (case-insensitiv). Ohne Parameter alle Sitzungen.
Responses
Abschnitt betitelt „Responses“Sitzungen, neueste zuerst.
Media typeapplication/json
Array<object>
object
id
string
title
string
message_count
integer
last_model
string
total_prompt
integer
total_output
integer
created_at
string format: date-time
updated_at
string format: date-time
Examplegenerated
[ { "id": "example", "title": "example", "message_count": 1, "last_model": "example", "total_prompt": 1, "total_output": 1, "created_at": "2026-04-15T12:00:00Z", "updated_at": "2026-04-15T12:00:00Z" }]