---
title: "Get a single agent execution"
method: GET
path: "/v1/senders/{senderId}/agent/executions/{executionId}"
tags: ["Agents"]
---

# Get a single agent execution

`GET /v1/senders/{senderId}/agent/executions/{executionId}`

## Request

- Base URL: `https://api.zavu.dev`
- URL: `https://api.zavu.dev/v1/senders/{senderId}/agent/executions/{executionId}`
- Auth: HTTP bearer

Fetch full details for one execution — including `errorMessage`, `errorCode`, and `responseText`. Use this to debug failures surfaced by the list endpoint.

## Path parameters

- `senderId` string, required
- `executionId` string, required

## Response `200`

Execution details.

- object
  - `execution` AgentExecution, required
    - `id` string, required
    - `agentId` string, required
    - `inboundMessageId` string
    - `responseMessageId` string, nullable
    - `responseText` string, nullable
    - `status` 'success' | 'error' | 'filtered' | 'rate_limited' | 'balance_insufficient', required: Status of an agent execution.
    - `errorMessage` string, nullable
    - `inputTokens` integer, required
    - `outputTokens` integer, required
    - `latencyMs` integer, required
    - `cost` number, required: Cost in USD.
    - `createdAt` string, date-time, required
    - `knowledgeChunksUsed` integer, nullable: Knowledge-base chunks retrieved for this answer. Zero on an agent that has documents attached means the reply was not grounded in them, which is otherwise indistinguishable from a correct answer in this record. Absent on executions recorded before this field existed, which is not the same as zero.
    - `toolCalls` integer, nullable: Tools the agent called while producing this reply. Zero on an agent that has tools configured means it answered without calling any — the case where a reply says it will look something up and nothing ever reaches your endpoint. Absent on executions recorded before this field existed, which is not the same as zero.

## Other responses

- `401`: Unauthorized.
- `404`: Agent or execution not found.

## Changes

> 81 revisions in range; 1 not diffed.

- **2026-08-05** `a08a6318c986`: 1 info
  - added the optional property `execution/toolCalls` to the response with the `200` status
- **2026-07-28** `f6169c05179d`: 1 info
  - added the optional property `execution/knowledgeChunksUsed` to the response with the `200` status
- **2026-05-15** `776d19f832a5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/changes/v1/senders/:senderId/agent/executions/:executionId/get.md)

---

[API](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api.md) - [All operations](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/revisions/897889bb2781?raw)
