v51

latestOpenAPI 3.0.3agplraw.githubusercontent.com2026-08-014010324.1 KB
chat_api

Get session messages

Get chat messages for the session without the system message

get/ocs/v2.php/apps/assistant/chat/messages

Query parameters

sessionIdinteger required

The session ID

limitinteger

The max number of messages to return

cursorinteger

The index of the first result to return

filterByRolestring

Only role to include in the response

Headers

OCS-APIRequestboolean required

Required to be true for the API request to pass

Response

The message list has been successfully obtained

idinteger required
session_idinteger required
rolestring required
contentstring required
timestampinteger required
ocp_task_idinteger required
sourcesstring required