> ## 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.

# List agent executions

> List recent agent executions with pagination.

An execution is one inbound message answered by the agent, so this covers the messaging channels only. Voice calls are never listed here regardless of how many the agent handled. Use `GET /v1/calls` (and `GET /v1/calls/{callId}` for the transcript) for voice.



## OpenAPI

````yaml /openapi.json get /v1/senders/{senderId}/agent/executions
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,
    location requests, 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,
    location_request, 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/Messenger)
servers:
  - url: https://api.zavu.dev
security:
  - bearerAuth: []
paths:
  /v1/senders/{senderId}/agent/executions:
    get:
      tags:
        - Agents
      summary: List agent executions
      description: >-
        List recent agent executions with pagination.


        An execution is one inbound message answered by the agent, so this
        covers the messaging channels only. Voice calls are never listed here
        regardless of how many the agent handled. Use `GET /v1/calls` (and `GET
        /v1/calls/{callId}` for the transcript) for voice.
      operationId: listAgentExecutions
      parameters:
        - $ref: '#/components/parameters/SenderIdParam'
        - name: status
          in: query
          schema:
            $ref: '#/components/schemas/AgentExecutionStatus'
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 100
        - name: cursor
          in: query
          schema:
            type: string
      responses:
        '200':
          description: List of executions.
          content:
            application/json:
              schema:
                type: object
                required:
                  - items
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/AgentExecution'
                  nextCursor:
                    type: string
                    nullable: true
        '400':
          description: >-
            Invalid query parameters, such as a `status` that is not an
            execution status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Agent 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:
    AgentExecutionStatus:
      type: string
      description: Status of an agent execution.
      enum:
        - success
        - error
        - filtered
        - rate_limited
        - balance_insufficient
    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
        knowledgeChunksUsed:
          type: integer
          nullable: true
          description: >-
            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:
          type: integer
          nullable: true
          description: >-
            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.
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.