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

# List Agent Runs

> List the runs of an agent, newest first, paginated with `offset`/`limit`.



## OpenAPI

````yaml /api-reference/openapi.json get /v2/agents/{agent_id}/runs
openapi: 3.1.0
info:
  title: Nimble SDK
  version: 1.0.0
  description: The AI-Native SDK for Real-Time Web Data at scale
servers:
  - url: https://sdk.nimbleway.com
security: []
paths:
  /v2/agents/{agent_id}/runs:
    get:
      tags:
        - Public API
      summary: List Agent Runs
      description: >-
        List the runs of an agent, newest first, paginated with
        `offset`/`limit`.
      operationId: list_runs_public_v2_api_v2_public_web_search_agents__agent_id__runs_get
      parameters:
        - in: path
          name: agent_id
          required: true
          schema:
            format: uuid
            title: Agent Id
            type: string
          description: Web Search Agent ID, format `wsa_<uuid>`.
        - in: query
          name: offset
          required: false
          schema:
            default: 0
            minimum: 0
            title: Offset
            type: integer
          description: Number of items to skip before this page.
        - in: query
          name: limit
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
          description: Maximum number of items to return (1-200).
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponse_TaskRunResponsePublicV2_'
          description: Successful Response
        '404':
          description: Agent not found (or not owned by your account).
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    title: Detail
                title: ErrorDetail
              example:
                detail: >-
                  Web Search Agent wsa_2af5b0e2-58b8-4b60-a1a4-9e57e4d33f00 not
                  found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - BearerAuth: []
components:
  schemas:
    ListResponse_TaskRunResponsePublicV2_:
      properties:
        items:
          description: Items returned in this page.
          items:
            $ref: '#/components/schemas/TaskRunResponsePublicV2'
          title: Items
          type: array
        limit:
          description: Maximum number of items returned.
          title: Limit
          type: integer
        offset:
          description: Number of items skipped before this page.
          title: Offset
          type: integer
        total:
          description: Total number of items matching the query.
          title: Total
          type: integer
      required:
        - items
        - total
        - limit
        - offset
      title: ListResponse[TaskRunResponsePublicV2]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    TaskRunResponsePublicV2:
      properties:
        completed_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: When the run completed.
          title: Completed At
        created_at:
          description: When the run was created.
          format: date-time
          title: Created At
          type: string
        effort:
          $ref: '#/components/schemas/Effort'
          description: Effort level used for the run.
          example: high
        error:
          anyOf:
            - $ref: '#/components/schemas/TaskRunErrorPublicV2'
            - type: 'null'
          description: Error details when the run failed.
        id:
          description: Run identifier, format "task_run_{uuid}".
          title: Id
          type: string
          example: task_run_c0ffee00-0000-4000-8000-000000000000
        interaction_id:
          description: Interaction ID.
          title: Interaction Id
          type: string
        is_active:
          description: True while status is 'queued' or 'running'.
          title: Is Active
          type: boolean
        prompt:
          anyOf:
            - type: string
            - type: 'null'
          description: Prompt submitted for the run.
          title: Prompt
        started_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: When the run started executing.
          title: Started At
        status:
          $ref: '#/components/schemas/TaskRunStatusValue'
          description: Current run status.
          example: queued
        web_search_agent_id:
          description: Web Search Agent instance this run belongs to.
          title: Web Search Agent Id
          type: string
          example: wsa_2af5b0e2-58b8-4b60-a1a4-9e57e4d33f00
      required:
        - id
        - interaction_id
        - status
        - is_active
        - effort
        - created_at
        - web_search_agent_id
      title: TaskRunResponsePublicV2
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    Effort:
      description: Canonical effort tier names for the research graph.
      enum:
        - low
        - medium
        - high
        - x-high
        - max
      title: Effort
      type: string
    TaskRunErrorPublicV2:
      properties:
        message:
          description: Human-readable error description.
          title: Message
          type: string
        ref_id:
          description: Reference ID (equals the run id).
          title: Ref Id
          type: string
      required:
        - ref_id
        - message
      title: TaskRunErrorPublicV2
      type: object
    TaskRunStatusValue:
      description: >-
        Lowercase status values used in API responses (distinct from the
        DB-level TaskRunStatus enum).
      enum:
        - queued
        - running
        - completed
        - failed
        - cancelled
      title: TaskRunStatusValue
      type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````