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

# List Agent Runs

> List auto-reply runs for an agent (newest first).



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/agents/{agent_id}/runs
openapi: 3.1.0
info:
  title: wazzapi Public API
  description: >-
    Public API surface for external API-key clients. Only stable /api/v1
    endpoints are included.


    ## Webhook deliveries

    This reference also includes the webhook requests Wazzapi sends to your
    endpoint for incoming messages, message status updates, and device status
    changes. See the `Incoming webhooks` section in the sidebar for headers,
    payload fields, and concrete examples.
  version: 1.0.0
servers: []
security: []
tags:
  - name: Incoming webhooks
    description: >-
      POST deliveries that Wazzapi sends to your webhook endpoint after you
      subscribe to supported events. Verify the signature against the raw body
      and return a 2xx response quickly.
paths:
  /api/v1/agents/{agent_id}/runs:
    get:
      tags:
        - agents
      summary: List Agent Runs
      description: List auto-reply runs for an agent (newest first).
      operationId: list_agent_runs_api_v1_agents__agent_id__runs_get
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Agent Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Status
        - name: conversation_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Conversation Id
        - name: from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: From
        - name: to
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: To
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentRunListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentRunListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AgentRunResponse'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
        - items
        - total
        - limit
        - offset
      title: AgentRunListResponse
      description: Paginated agent run history.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentRunResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        agent_id:
          type: string
          format: uuid
          title: Agent Id
        conversation_id:
          type: string
          format: uuid
          title: Conversation Id
        inbound_message_id:
          type: string
          format: uuid
          title: Inbound Message Id
        outbound_message_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Outbound Message Id
        status:
          $ref: '#/components/schemas/AgentRunStatus'
        reply_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Reply Text
        skip_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Skip Reason
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        latency_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Latency Ms
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        finished_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Finished At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - agent_id
        - conversation_id
        - inbound_message_id
        - outbound_message_id
        - status
        - reply_text
        - skip_reason
        - error_message
        - latency_ms
        - started_at
        - finished_at
        - created_at
      title: AgentRunResponse
      description: One auto-reply run for audit / activity UI.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    AgentRunStatus:
      type: string
      enum:
        - queued
        - running
        - completed
        - skipped
        - failed
        - escalated
      title: AgentRunStatus
      description: Lifecycle of a single agent auto-reply run.

````