Skip to content

API overview

https://browser.datum.network/api/v4

Requests and responses are JSON (an extension upload is multipart). Fields are camelCase, times are ISO 8601 in UTC, and money is a decimal string in US dollars ("0.0042"), as Browser Use Cloud writes them.

Send an organization’s secret key (sk_…, from API Keys) in either header:

X-Browser-Use-API-Key: sk_...
Authorization: Bearer sk_...

A publishable key is refused (403 secret_key_required or 401 unauthorized): a browser spends the organization’s balance, so keep the key on your server.

Lists take pageSize (1–100, 10 by default) and pageNumber (from 1), and return:

{ "items": [], "totalItems": 0, "pageNumber": 1, "pageSize": 10 }

A browser just started can take a few seconds to appear in GET /browsers; GET /browsers/{id} has it at once.

Errors have FastAPI’s shape, as Browser Use returns them:

{ "detail": { "message": "This organization's balance is spent. Add credits in Billing", "code": "balance_exhausted" } }

A body that does not validate returns 422 with a list of the fields at fault:

{ "detail": [{ "loc": ["body", "timeout"], "msg": "Too big: expected number to be <=240", "type": "too_big" }] }

Every status and code, and what to do about each, is in Errors.

  • Idempotency-Key on POST /browsers (up to 128 characters): a repeated create request with the same key returns the browser the first one started, rather than starting a second, and 409 starting while the first is still starting. It applies to create requests without a profile, a proxy, a network policy, extensions or a recording; the others ignore it for now.
  • snake_case create fields: POST /browsers reads network_policy_id as networkPolicyId, proxy_sticky as proxySticky, and so on, because Browser Use’s Python SDK sends keyword arguments it does not know as written. When both spellings are sent, the camelCase one wins.
  • Server-Timing on the create’s response says where its time went, in milliseconds.
Resource Routes
Browsers POST /browsers, GET /browsers, GET /browsers/{id}, PATCH /browsers/{id}
Proxies GET /browsers/{id}/proxy, PATCH /browsers/{id}/proxy
Profiles GET/POST /profiles, GET/PATCH/DELETE /profiles/{id}, POST /profiles/{id}/import
Network policies GET/POST /network-policies, GET/PATCH/DELETE /network-policies/{id}
Extensions GET/POST /extensions, GET/DELETE /extensions/{id}
Vault credentials GET/POST /vault/credentials, GET/PATCH/DELETE /vault/credentials/{id}
Files and recordings GET /browsers/{id}/downloads, recordingUrl on a browser
Errors Every status and code