---
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}`

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.

---

[API](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api.md) · [All operations](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zavudev/zavu-unified-messaging-layer-api/versions/07b87b6ae707/schema)
