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

# Get Run Events

> Paginated event read. `after` is the event id cursor — clients
doing periodic polls pass back the highest id they've seen to get only
the delta. Default 0 returns from the start.



## OpenAPI

````yaml /cloud/openapi/v4.json get /runs/{run_id}/events
openapi: 3.1.0
info:
  title: Browser Use Public API v4
  summary: Browser Use agent runs API (v4)
  version: 4.0.0
servers:
  - url: https://api.browser-use.com/api/v4
    description: Production server
security: []
tags:
  - name: Runs
  - name: Sessions
  - name: Workspaces
  - name: Browsers
  - name: Profiles
paths:
  /runs/{run_id}/events:
    get:
      tags:
        - Runs
      summary: Get Run Events
      description: |-
        Paginated event read. `after` is the event id cursor — clients
        doing periodic polls pass back the highest id they've seen to get only
        the delta. Default 0 returns from the start.
      operationId: get_run_events_runs__run_id__events_get
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Run Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 200
            title: Limit
        - name: after
          in: query
          required: false
          schema:
            type: integer
            default: 0
            title: After
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunEventsResponse'
        '403':
          description: Zero Data Retention is enabled on the project (V4 unsupported).
        '404':
          description: Run, session, workspace, or profile not found.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    RunEventsResponse:
      properties:
        events:
          items:
            $ref: '#/components/schemas/RunEvent'
          type: array
          title: Events
        nextAfter:
          anyOf:
            - type: integer
            - type: 'null'
          title: Nextafter
        hasMore:
          type: boolean
          title: Hasmore
          default: false
      type: object
      required:
        - events
      title: RunEventsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RunEvent:
      properties:
        runId:
          type: string
          format: uuid
          title: Runid
        id:
          type: integer
          title: Id
        ts:
          type: string
          format: date-time
          title: Ts
        type:
          type: string
          title: Type
        data:
          additionalProperties: true
          type: object
          title: Data
      type: object
      required:
        - runId
        - id
        - ts
        - type
        - data
      title: RunEvent
    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-Browser-Use-API-Key

````