v5

latestOpenAPI 3.1.02026-08-081,0211,3082.1 MB
WORKFLOW_AGENT

Report Message

Agent appends a message to a session's conversation log.

session_id can be either a workflow_sessions UUID or an openclaw_session_id. If the session doesn't exist yet, auto-create it from the openclaw_session_id.

post/api/v1/workflow/agent/messages

Request body

session_idstring required
rolestring required
contentstring required
{"stackTrail":"components:schemas:MessageReportRequest:properties:tool_calls:anyOf","oasType":"schema","type":"unknown","title":"Tool Calls","nullable":true}
metadataobject nullable

Response

Successful Response

{"stackTrail":"paths:/api/v1/workflow/agent/messages:post:responses:201:content:application/json:schema","oasType":"schema","type":"unknown"}