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

# List Agent Runs

> Returns cursor-paginated runs for a V2 chat agent, newest first, each summarizing status, disposition, error, latency, and token usage.



## OpenAPI

````yaml GET /v1/agents/{id}/runs
openapi: 3.0.0
info:
  title: Conduit API
  version: 1.0.0
  description: Public API for Conduit.
servers:
  - url: https://api.conduit.ai
    description: Production
security: []
tags:
  - name: meta
    description: Discovery and API metadata endpoints.
  - name: agents
    description: >-
      V2 chat agent configuration, including instructions, skills, triggers, and
      automation behavior.
  - name: contacts
    description: >-
      Contact profile and contact-scoped related resources such as tickets and
      calls.
  - name: workspaces
    description: Workspaces accessible to the current API token.
  - name: escalations
    description: >-
      Chat escalations that require operator review, including message, proposed
      response, and disposition context when available.
  - name: conversations
    description: >-
      Canonical message threads. Use these endpoints to list threads, inspect
      conversation state, read transcripts, and send replies.
  - name: conversation-tags
    description: >-
      Conversation labels, root topics, and subtopics used for classification
      and topic analytics.
  - name: tickets
    description: >-
      Operational queue items tied to conversations, including ticket-scoped
      transcripts and replies.
  - name: calls
    description: Phone call records, transcripts, summaries, and recordings when available.
  - name: reservations
    description: >-
      PMS reservations synced from the workspace's integrations (Hostaway,
      Guesty, Airbnb, etc.), including guest identity, payment status, and stay
      dates.
  - name: appointments
    description: >-
      Scheduled appointments (bookings) backed by the Conduit booking service.
      Exposes allocation context and the upstream booking-service `external_id`.
  - name: helpdesk_tickets
    description: >-
      Helpdesk tickets mirrored from external helpdesk integrations (Zendesk,
      Pylon, Plain), including requester identity and upstream metadata.
  - name: kb
    description: >-
      Knowledge base search and node management. Nodes represent knowledge base
      entries (files or directories), chunks are the indexed retrieval units
      used by search.
  - name: skills
    description: >-
      Workspace agent skills that can be attached to V2 chat agents.
      Sidebar/global-assistant skills are intentionally excluded.
  - name: custom_tools
    description: >-
      Custom code tools: user-authored Python/JavaScript functions executed in a
      sandbox when an agent calls them. Includes a runtimes endpoint describing
      the entrypoint signature, return shape, and available dependencies per
      language.
paths:
  /v1/agents/{id}/runs:
    get:
      tags:
        - agents
      summary: List agent runs
      description: >-
        Returns cursor-paginated runs for a V2 chat agent, newest first. Each
        run summarizes its status, disposition, error, latency, and token usage.
        Use `get agent run` for the full tool-call trace.
      operationId: listAgentRuns
      parameters:
        - schema:
            type: string
            description: Agent id.
            example: ag77c0dy0mgdpzmqz6tesry8w184002s
          required: true
          name: id
          in: path
        - schema:
            type: string
            description: >-
              Optional workspace override. If omitted, Conduit resolves the
              agent's workspace automatically.
            example: j57demo8f8x7c9v0n2q4r6t8y1u3i5o
          required: false
          name: workspace_id
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          required: false
          name: limit
          in: query
        - schema:
            type: string
          required: false
          name: cursor
          in: query
        - schema:
            type: string
            enum:
              - accepted
              - running
              - completed
              - failed
            description: Filter runs by lifecycle status.
          required: false
          name: status
          in: query
      responses:
        '200':
          description: Agent runs
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Run identifier. Pass to the get-run endpoint.
                        run_id:
                          type: string
                          description: >-
                            Agent backend run id, useful for cross-referencing
                            traces.
                        agent_id:
                          type: string
                        workspace_id:
                          type: string
                        status:
                          type: string
                          enum:
                            - accepted
                            - running
                            - completed
                            - failed
                          description: >-
                            Lifecycle status of the run. `accepted`/`running`
                            are in-flight; `completed`/`failed` are terminal.
                        disposition:
                          type: string
                          nullable: true
                          enum:
                            - escalated
                            - escalation_and_answer
                            - resolved
                            - unresolved
                            - no_op
                            - proactive
                          description: The agent's decision for this run.
                        contact_id:
                          type: string
                          nullable: true
                        conversation_id:
                          type: string
                          nullable: true
                        trigger_id:
                          type: string
                          nullable: true
                        error:
                          type: string
                          nullable: true
                          description: Failure message when `status` is `failed`.
                        duration_ms:
                          type: number
                          nullable: true
                          description: End-to-end run latency in milliseconds.
                        token_usage:
                          type: object
                          nullable: true
                          properties:
                            input:
                              type: number
                              description: Input (prompt) tokens consumed.
                            output:
                              type: number
                              description: Output (completion) tokens produced.
                          required:
                            - input
                            - output
                          description: Token usage reported by the agent backend.
                        total_cost:
                          type: number
                          nullable: true
                          description: >-
                            Provider cost of the run in USD. Null for internal
                            agents (billed in credits).
                        trace_id:
                          type: string
                          nullable: true
                        created_at:
                          type: string
                        completed_at:
                          type: string
                          nullable: true
                      required:
                        - id
                        - run_id
                        - agent_id
                        - workspace_id
                        - status
                        - disposition
                        - contact_id
                        - conversation_id
                        - trigger_id
                        - error
                        - duration_ms
                        - token_usage
                        - total_cost
                        - trace_id
                        - created_at
                        - completed_at
                  next_cursor:
                    type: string
                    nullable: true
                  has_more:
                    type: boolean
                required:
                  - data
                  - next_cursor
                  - has_more
                description: Cursor-paginated agent runs response.
                example:
                  data:
                    - id: ar77c0dy0mgdpzmqz6tesry8w184002s
                      run_id: run_9f3a1c7e
                      agent_id: ag77c0dy0mgdpzmqz6tesry8w184002s
                      workspace_id: j57demo8f8x7c9v0n2q4r6t8y1u3i5o
                      status: completed
                      disposition: resolved
                      contact_id: co77c0dy0mgdpzmqz6tesry8w184002s
                      conversation_id: cv77c0dy0mgdpzmqz6tesry8w184002s
                      trigger_id: tr77c0dy0mgdpzmqz6tesry8w184002s
                      error: null
                      duration_ms: 4213
                      token_usage:
                        input: 1820
                        output: 342
                      total_cost: 0.0121
                      trace_id: 0f9c2b1d8a7e4f36
                      created_at: '2026-04-03T03:14:15.000Z'
                      completed_at: '2026-04-03T03:14:19.213Z'
                  next_cursor: page-token
                  has_more: true
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                description: Standard error response.
                example:
                  error: Invalid workspace id
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                description: Standard error response.
                example:
                  error: Invalid workspace id
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                description: Standard error response.
                example:
                  error: Invalid workspace id
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                description: Standard error response.
                example:
                  error: Invalid workspace id
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                description: Standard error response.
                example:
                  error: Invalid workspace id
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Token
      description: >-
        Conduit API token. Use `Authorization: Bearer <token>`. Read/write
        endpoints require a token with write access.

````