List webchat sessions
Changed onAPI-key requests return a paginated object and require username. Dashboard requests with page or page_size return the same paginated object (sessions, page, page_size, total), scoped to the authenticated user. Dashboard requests without pagination parameters retain the legacy array response, limited to 100 sessions. Paginated requests default to page 1 and page_size 20, with page_size clamped to 1–100.
Required scope: chat
Request
- Base URLhttp://localhost:6185
- URLhttp://localhost:6185/api/v1/chat/sessions
- AuthAPI key in header X-API-Key
Query parameters
Response
Standard AstrBot success response
Changes
- breaking
the
response's property type changed fromobjectto no type for status - warning
deleted the
queryrequest parameterplatform_id - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
api operation id
listChatSessionswas added - info
the endpoint scheme security
ApiKeyHeaderwas removed from the API - info
api tag
Chatadded - info
api tag
Open APIremoved - info
the
queryrequest parameterusernamebecame optional - info
for the
queryrequest parameterpage_size, the max was increased from100.00to200.00 - info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
the response property
became required for the status - info
the response property
became required for the status - info
the
response property const valueokwas added for the status
- breaking
- breaking
the
queryrequest parameterusernamebecame required - breaking
for the
queryrequest parameterpage_size, the max was decreased from200.00to100.00 - breaking
the response property
became nullable for the status - breaking
the response property
became optional for the status - breaking
the response property
became optional for the status - breaking
the
response property const valueokwas removed for the status - breaking
the
response's property type changed from no type toobjectfor status - info
api operation id
listChatSessionsremoved and replaced with - info
the endpoint scheme security
ApiKeyHeaderwas added to the API - info
api tag
Open APIadded - info
api tag
Chatremoved - info
added the new optional
queryrequest parameterplatform_id - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking