---
title: "Get a Run"
method: GET
path: "/v1/agents/runs/{runId}"
---

# Get a Run

`GET /v1/agents/runs/{runId}`

Retrieve the current status and details of a run, including its result and associated session information. To fetch the run's messages, use [List Run Messages](/reference/api/list-run-messages).

## Path parameters

- `runId` string, required

## Response `200`

The agent run.

- AgentRun — One execution of an agent against a task. Created in `pending` and transitioned through `running` → `completed`/`failed` by the runner.
  - `runId` string, required — Unique identifier for the run.
  - `agentId` string — The ID of the agent applied to this run, if any. Omitted for ad-hoc runs.
  - `task` string, required — The original task description.
  - `status` 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'STOPPED' | 'TIMED_OUT', required — Current status of the run. - `PENDING` - agent will run soon - `RUNNING` - agent is currently running - `COMPLETED` - agent has finished running - `FAILED` - agent has failed the run - `STOPPED` - run was stopped by the user - `TIMED_OUT` - run exceeded maximum time
  - `sessionId` string — The Browserbase session ID powering this run.
  - `sandboxId` string — External sandbox identifier assigned by the runner. Optional.
  - `resultSchema` object — Per-run [JSON Schema](https://json-schema.org/specification) override for the result shape. When unset, the agent's default `resultSchema` applies.
  - `result` object — The agent's structured result for the run. Only present when the run has finished and output is available. The result conforms to the provided [JSON Schema](https://json-schema.org/specification) when one is set.
  - `cause` object
    - `code` string, required — Structured failure code (e.g., RUNNER_HEARTBEAT_LOST).
    - `message` string — Human-readable failure detail.
  - `startedAt` string, date-time
  - `endedAt` string, date-time
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

---

[API](https://skmtc.net/browserbase/apis/browserbase-api.md) · [All operations](https://skmtc.net/browserbase/apis/browserbase-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/browserbase/browserbase-api/versions/832b22144edf/schema)
