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

# Get Runs For Task

> Get all runs for a specific task (lightweight version)



## OpenAPI

````yaml self-hosted-api-reference/openapi.json get /api/tasks/{task_id}/runs
openapi: 3.1.0
info:
  title: Webagent API
  description: API to execute automated tasks on browser using different LLM providers.
  version: 0.1.0
servers: []
security: []
paths:
  /api/tasks/{task_id}/runs:
    get:
      summary: Get Runs For Task
      description: Get all runs for a specific task (lightweight version)
      operationId: get_runs_for_task_api_tasks__task_id__runs_get
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: integer
            title: Task Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LightTaskRun'
                title: Response Get Runs For Task Api Tasks  Task Id  Runs Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    LightTaskRun:
      properties:
        id:
          type: integer
          title: Id
          description: Task run ID
        description:
          type: string
          title: Description
          description: Task run description (prompt)
        is_done:
          type: boolean
          title: Is Done
          description: Whether the task run is completed
        is_successful:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Successful
          description: Whether the task run was successful
      type: object
      required:
        - id
        - description
        - is_done
      title: LightTaskRun
      description: Lightweight representation of a task run
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````