The option object, guards and lifetime are in the Browser guide. This page is the routes.
browser block carries one browser session. The
first action opens it; DELETE closes it. Every route below takes the computers:write scope
unless it says otherwise. Three routes — live view, granting and revoking a saved login — answer
only a signed-in dashboard session: an API key gets 403 forbidden whatever its scopes.
The browser session object
true when the session carries a saved login — extract, observe, links and screenshot then need allow_extract.When the session closes on its own (
timeout_minutes after it opened). A sweep on the platform clock closes and bills any session past it within a minute; the row is then closed like one you deleted.Perform an action
POST /v1/computers/{id}/browser/actions — opens the browser lazily on the first call.
The body is one action, discriminated on action. Idempotency-Key is required for goto
and act and optional elsewhere.
variables values are never echoed — not in the result, not in the event, not in the audit row.
What is refused
Name saved logins uniquely across the organization if more than one identity will hold them:
shop-ava rather than two shops. A name is unique per identity at save time, so the collision only arises across identities.Read the session
GET /v1/computers/{id}/browser → the browser session, or 404 not_found when none is open.
Close the session
DELETE /v1/computers/{id}/browser — idempotent. The closed browser session
(status: closed, closed_at set), or 204 when nothing was open. Closing settles the session’s
minutes on the browser line item, capped at timeout_at, and, on a session opened with persist_context or human_login,
writes its cookies and storage into the saved login.
Live view
GET /v1/computers/{id}/browser/live-view — dashboard session only. A browser_live_view
({ object, url, expires_at }) for the one browser currently open; the URL is a bearer credential
and is never logged or put in an event. An API key gets 403 forbidden.
The dashboard’s Browser tab on a computer renders it, and lists every browser the computer ever
drove — see Browser sessions. Never hand the URL to an agent or store it.
Save a login
POST /v1/computers/{id}/browser/context → 201 browser_context
A saved login is bound when a browser opens: the engine attaches it at session start and flushes
cookies and storage into it at close. This call therefore has two moments:
- No browser open on the computer — creates the empty saved login under
name, owned by an identity. Open the next browser withcontext_name(andhuman_loginorpersist_context) to fill it. - A browser open with that
context_name— marks the login saved and releases thehuman_loginlock; the samebct_comes back and the close persists the login.
400 validation_failed (param: context_name):
nothing that browser holds can reach the saved login.
Grant a saved login
POST /v1/browser/contexts/{name}/grants — dashboard session only → 201 browser_grant
A saved login is default-deny: a session may reopen it only when its agent — or the agent’s member
role — holds a grant. The same grantee twice is a 200 replay of the existing grant; a new one
reaches your webhooks as browser.context.granted. Over the REST
API, an owner or admin dashboard session — or an API key holding the admin scope — opens every
saved login of the organization without a grant; a member session, and any other API key, needs
the member role grant; an agent’s browser tool needs a grant by its agt_ id or by role.
Revoke a saved login
DELETE /v1/browser/contexts/{name}?identity_id=idn_... — dashboard session only. Deletes the
saved login and every grant on it. identity_id is required. Webhooks receive
browser.context.revoked { context_id }.
Log in with a saved credential
POST /v1/computers/{id}/browser/login → browser_action
Reads the identity’s vault credential login:<service> and fills the form through %username% and
%password% placeholders. The plaintext never enters the model or a result.
Sign up
POST /v1/computers/{id}/browser/signup → browser_action
Generates a password, stores it as login:<service> in the identity’s vault, then runs the sign-up
flow with it. When an agent’s browser tool does this, the session always pauses for a person to
confirm — see Tools.
Save a credential
POST /v1/browser/credentials → the vault credential’s metadata
Seals login:<service> into the identity’s vault so login can use it. The reply is metadata —
no route ever returns the value.
On the developer platform
In a developer workspace a browser is a workspace resource: each open or recent session shows under Identities → Resources in the console and inGET /v1/resources?type=browser,
and saved logins stay listed as browser_profile. Opening one needs a computer and a funded workspace; actions,
sign-in and sign-up need a funded workspace. Price: $0.10 an hour while a session is open, plus $0.01 per
plain-language action (act, extract, observe). Developer workspaces open browsers without a proxy: a computer
whose browser block asks for one answers 400 validation_failed.
Errors
forbidden, validation_failed, not_found, context_locked (409 — a human_login flow holds
the saved login for 15 minutes), provider_error (502), computer_unavailable, rate_limited,
feature_not_configured. See Errors.