Skip to main content

List an agent's tool runs

GET 

/v1/agents/:agentId/tool-runs

x-scope: "tool_runs:read"

Every time the agent's AI used a tool, across every tool, newest first: a custom API tool, a Google Sheets or Calendar operation, the built-in lead capture. Each run names the tool as it was then (tool.provider, tool.operation), how it went (status, error, duration_ms), the conversation it ran in and the ad that conversation came from (ad_id, the same ad as the conversation's latest_ad_id at that moment). Filter by tool_id, provider, operation, status, conversation_id, ad_id, or a window on ran_at with since and before. A list filtered by provider, operation, status or conversation_id covers the last 90 days of runs before before or now; send since for an older window (tool_id and ad_id have no such limit). The list leaves out what was sent and received; getToolRun has both. A run of a tool that has since been deleted keeps its provider and operation but has no tool.name.

Request​

Responses​

A page of tool runs.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.