Runs

Query and manage test runs.

A run represents a single execution of your test suite. Runs contain spec files which are executed across multiple instances. You can query run details, cancel runs, reset failed specs, and delete runs.

Per-test outcome counters on specs (results.stats) use the RecordedTestOutcome vocabulary—see components/schemas for how pending and skipped differ from failures.

Get run

get
/runs/{runId}

Get a single run by ID with full details. Runs with many test files can produce a large JSON response. Include Accept-Encoding: gzip in your request when possible. Spec results.stats exposes pending, skipped, and failures separately; see RecordedTestOutcome in components/schemas and compare to Tests Explorer metrics mapping. For narrative context, see the Test result statusesarrow-up-right section on the Test Explorer documentation page.

Authorizations
AuthorizationstringRequired

API key authentication using Bearer token

Path parameters
runIdstringRequired

The run ID

Example: run_abc123
Responses
chevron-right
200

Successful response

application/json
statusstring · enumRequiredPossible values:
get
/runs/{runId}

Delete run

delete
/runs/{runId}

Delete a run and all associated data

Authorizations
AuthorizationstringRequired

API key authentication using Bearer token

Path parameters
runIdstringRequired

The run ID

Example: run_abc123
Responses
chevron-right
200

Run deleted successfully

application/json
statusstring · enumRequiredPossible values:
delete
/runs/{runId}

Find run

get
/runs/find

Find a run by query parameters. Returns the most recent completed run matching the criteria. For runs with many test files, the response can be large. There is a 1MB response limit. It is strongly recommended to include Accept-Encoding: gzip header in your request to enable compression.

Authorizations
AuthorizationstringRequired

API key authentication using Bearer token

Query parameters
projectIdstringRequired

The project ID

Example: proj_abc123
ciBuildIdstringOptional

The CI build ID. If provided, returns the run with this exact ciBuildId.

branchone ofOptional

Branch filter value: an exact branch name, or a trailing * for prefix match (e.g. release/*). Max 250 characters.

string · max: 250Optional

Exact branch name (must not contain * or spaces).

Pattern: ^[!-)+-~]+$
or
string · max: 250Optional

Prefix match: branch prefix followed by *.

Pattern: ^[!-)+-~]+\*$
tags[]string[]Optional

Filter by tags (can be specified multiple times using bracket notation, e.g., tags[]=value1&tags[]=value2)

Example: ["tag1","tag2"]
tag[]string[]OptionalDeprecated

Deprecated. Use tags[] instead. Run tags to filter by (can be specified multiple times using bracket notation, e.g., tag[]=tag1&tag[]=tag2)

Example: ["tag1","tag2"]
pwLastRunbooleanOptional

If true, includes information about failed tests from the last run (Playwright only)

Responses
chevron-right
200

Successful response

application/json
statusstring · enumRequiredPossible values:
get
/runs/find

Cancel run

put
/runs/{runId}/cancel

Cancel a run in progress

Authorizations
AuthorizationstringRequired

API key authentication using Bearer token

Path parameters
runIdstringRequired

The run ID

Example: run_abc123
Responses
chevron-right
200

Run cancelled successfully

application/json
statusstring · enumRequiredPossible values:
put
/runs/{runId}/cancel

Reset run

put
/runs/{runId}/reset

Reset failed spec files in a run to allow re-execution. Requires specifying machineId(s) to reset.

Authorizations
AuthorizationstringRequired

API key authentication using Bearer token

Path parameters
runIdstringRequired

The run ID

Example: run_abc123
Body
machineIdstring[] · min: 1 · max: 63Required

Machine ID(s) to reset

isBatchedOr8nbooleanOptional

Whether to use batched orchestration

Responses
chevron-right
200

Run reset successfully

application/json
statusstring · enumRequiredPossible values:
dataobjectRequired

Reset operation result

put
/runs/{runId}/reset

Cancel run by GitHub CI

put
/runs/cancel-ci/github

Cancel a run by GitHub Actions workflow run ID and attempt number

Authorizations
AuthorizationstringRequired

API key authentication using Bearer token

Body
githubRunIdstringRequired

GitHub Actions workflow run ID

githubRunAttemptintegerRequired

GitHub Actions workflow run attempt number

projectIdstringOptional

Optional project ID to scope the cancellation

ciBuildIdstringOptional

Optional CI build ID to scope the cancellation

Responses
chevron-right
200

Run cancelled successfully

application/json
statusstring · enumRequiredPossible values:
put
/runs/cancel-ci/github

Last updated

Was this helpful?