> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zavu.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a single agent execution

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



## OpenAPI

````yaml /openapi.json get /v1/senders/{senderId}/agent/executions/{executionId}
openapi: 3.0.3
info:
  title: Zavu Unified Messaging Layer API
  version: 0.2.0
  description: >
    Unified multi-channel messaging API for Zavu.


    Supported channels:

    - **SMS**: Simple text messages

    - **WhatsApp**: Rich messaging with media, buttons, lists, CTA URL buttons,
    and templates

    - **Telegram**: Bot messaging with text, media, and interactive elements

    - **Email**: Transactional emails via Amazon SES


    Design goals:

    - Simple `send()` entrypoint for developers

    - Project-level authentication via Bearer token

    - Support for all WhatsApp message types (text, image, video, audio,
    document, sticker, location, contact, buttons, list, cta_url, reaction,
    template)

    - If a non-text message type is sent, WhatsApp channel is used automatically

    - 24-hour WhatsApp conversation window enforcement

    - Universal `to` field accepts phone numbers (E.164), email addresses, or
    numeric chat IDs (Telegram/Instagram)
servers:
  - url: https://api.zavu.dev
security:
  - bearerAuth: []
paths:
  /v1/senders/{senderId}/agent/executions/{executionId}:
    get:
      tags:
        - Agents
      summary: Get a single agent execution
      description: >-
        Fetch full details for one execution — including `errorMessage`,
        `errorCode`, and `responseText`. Use this to debug failures surfaced by
        the list endpoint.
      operationId: getAgentExecution
      parameters:
        - $ref: '#/components/parameters/SenderIdParam'
        - name: executionId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Execution details.
          content:
            application/json:
              schema:
                type: object
                required:
                  - execution
                properties:
                  execution:
                    $ref: '#/components/schemas/AgentExecution'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Agent or execution not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  parameters:
    SenderIdParam:
      name: senderId
      in: path
      required: true
      schema:
        type: string
  schemas:
    AgentExecution:
      type: object
      required:
        - id
        - agentId
        - status
        - inputTokens
        - outputTokens
        - latencyMs
        - cost
        - createdAt
      properties:
        id:
          type: string
        agentId:
          type: string
        inboundMessageId:
          type: string
        responseMessageId:
          type: string
          nullable: true
        responseText:
          type: string
          nullable: true
        status:
          $ref: '#/components/schemas/AgentExecutionStatus'
        errorMessage:
          type: string
          nullable: true
        inputTokens:
          type: integer
        outputTokens:
          type: integer
        latencyMs:
          type: integer
        cost:
          type: number
          description: Cost in USD.
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: invalid_request
        message:
          type: string
          example: Phone number is invalid
        details:
          type: object
          additionalProperties: true
    AgentExecutionStatus:
      type: string
      description: Status of an agent execution.
      enum:
        - success
        - error
        - filtered
        - rate_limited
        - balance_insufficient
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````