> ## 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 Run By Id

> Retrieve a task run by its ID.

Returns the run details including status, result (if completed), and execution metadata.
Only accessible by the user who owns the run.



## OpenAPI

````yaml cloud-api-reference/openapi.json get /runs/{run_id}
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:
  - url: https://api.webagent.cloud
    description: Webagent API
security: []
paths:
  /runs/{run_id}:
    get:
      tags:
        - run
      summary: Get Run By Id
      description: >-
        Retrieve a task run by its ID.


        Returns the run details including status, result (if completed), and
        execution metadata.

        Only accessible by the user who owns the run.
      operationId: get_run_by_id_runs__run_id__get
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Run'
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    Run:
      properties:
        id:
          type: string
          title: Id
          description: The ID of the created task run
        task_id:
          type: string
          title: Task Id
          description: The ID of the created task
        status:
          $ref: '#/components/schemas/StatusEnum'
          description: The status of the agent's task
          default: pending
        result:
          anyOf:
            - {}
            - type: 'null'
          title: Result
          description: The final result of the agent's task
        is_done:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Done
          description: Whether the agent has completed its task
        is_successful:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Successful
          description: Whether the agent was successful in completing its task
      type: object
      required:
        - id
        - task_id
      title: Run
      description: Represents a Run.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    StatusEnum:
      type: string
      enum:
        - success
        - failure
        - pending
      title: StatusEnum
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````