Lists event messages for a task with cursor-based pagination.
The unique identifier of the task to list messages for.
Number of messages to return per page. Default: 50, Range: 1-200.
Pagination cursor from the previous response's next_cursor field. Omit for the first page.
Sort direction by timestamp. "desc" (default) returns newest first, "asc" returns oldest first (chronological order).
asc, desc When true, includes detailed events: tool_used (tools the agent invoked), plan_update (full plan snapshots), new_plan_step (individual step additions), and explanation (agent reasoning). Default: false — only returns user_message, assistant_message, error_message, status_update, and user_stop.
Format for slides attachments in the response. "html" (default) returns raw HTML slides. "pptx" auto-converts HTML slides to PowerPoint format.
html, pptx Messages retrieved successfully.
Whether the request was successful.
true
Unique identifier for this API request.
The task ID these messages belong to.
Array of task event objects representing the conversation and agent activity.
Whether there are more messages beyond this page.
Cursor for fetching the next page. Only present when has_more is true.