Lists event messages for a task with cursor-based pagination. Use this to poll for progress after task.create or task.sendMessage. See the Task Lifecycle guide for how to handle each status.
The unique identifier of the task to list messages for. Supports the shortcut agent-default-main_task for the IM agent's main task.
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.