List your runs
API Reference
List Tasks
Paginate over every browser-agent task submission your API key has created. Filter by status, control page size with limit/skip.
GET
List your runs
Paginate over every run this API key has created, newest first. Useful for building a history UI, reconciling your own records, or spot-checking processing runs.Documentation Index
Fetch the complete documentation index at: https://docs.pre.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
- Method:
GET - Path:
/list-browser-agents - Auth: same
Authorization: Bearer YOUR_API_KEYas Run a Task - Sort order: newest first (
createdAtdescending). - Scope: only runs owned by this API key are returned.
Query Parameters
| Name | Type | Default | Description |
|---|---|---|---|
limit | integer | 20 | Page size. 1 ≤ limit ≤ 100. Values outside the range are clamped. |
skip | integer | 0 | Number of runs to skip (offset-based pagination). |
status | "processing" | "completed" | — | Filter by run state. Omit to return all states. |
Response
batches is a summary row:
| Field | Type | Description |
|---|---|---|
id | string | Run id. Pass to GET /browser-agent/:id for full results. |
total | integer | Number of tasks in the run. |
completed | integer | How many tasks have finished. |
results | TaskResult[] | Array sized to total. Index 0 is pre-populated with a stub { url, instruction } for the first task so you can render a list row even before it completes; other indices are null until the run finishes. |
totalCreditsUsed | number | Running credits total across completed tasks. |
status | "processing" | "completed" | "failed" | Current state. |
createdAt | ISO-8601 | Run creation time. |
completedAt | ISO-8601 | Only set once status !== "processing". |
The envelope field is historically named
batches, not runs, to stay backward-compatible with older clients. Each entry is the same run-summary shape described above.Example
Status Codes
| Code | Meaning |
|---|---|
200 | OK. Body is the list envelope above. |
401 | Missing or invalid bearer token. |
Pagination Patterns
Python — iterate every run
Node.js — fetch a single page
TypeScript — pull all pages
Authorizations
API key for authentication. Get your API key from https://pre.dev/projects/playground (Solo) or https://pre.dev/enterprise/dashboard?page=api (Enterprise). Use format: Bearer YOUR_API_KEY
Query Parameters
Required range:
1 <= x <= 100Required range:
x >= 0Available options:
processing, completed 
