Skip to main content
POST
Creates, lists and deletes browser profiles. Each keeps cookies, local storage and session state between tasks. Pass its profile_id to any task.

Authentication

X-Agent-ID and a signed agent read proof (AGENT_READ_PROOF in the examples); the SDK supplies both. Profiles are scoped to your agent. Creating one is free.

Create profile

string
required
1-100 characters.
object[]
Playwright cookies: name, value, either url or domain and path, and optionally expires (Unix seconds), httpOnly, secure, sameSite, partitionKey.
object
Playwright-style { cookies, origins: [{ origin, localStorage: [{ name, value }] }] }. Use this or cookies, not both. IndexedDB and sessionStorage are rejected.
An import is checked before the call returns, up to 150 seconds. Cookie values never enter task prompts or receipts. The site can still expire or reject an imported cookie.

List profiles

Delete profile

Using profiles with tasks

Run one task at a time per profile. When a login expires, import again into a new profile.

Interactive login and 2FA

When a site asks for a password, authenticator code, SMS code or device approval, start a setup session: the account’s owner logs in on a OneShot page, and the profile keeps the session. Requires TypeScript SDK 0.34.0+ or Python 0.24.0+; setup_url needs TypeScript 0.54.0+ or Python 0.41.0+. Start returns setup_url:
  • It opens once and expires 10 minutes after minting or at setup expiry, whichever is first (setup_url_expires_at).
  • createBrowserProfileSetupLink(profile.id) mints a fresh one; it replaces the earlier link and its open page: a login in progress there cannot finish.
  • It is a secret: never open it; keep it out of logs and prompts.
  • live_url is deprecated and removed in the next release: use setup_url.
The person signs in, then presses Done (saves the session) or Cancel. Poll status until completed_at is set; it stays null after Cancel. Passwords, codes and seeds never enter prompts or receipts.
Python: start_browser_profile_setup, create_browser_profile_setup_link, get_browser_profile_setup, finish_browser_profile_setup, plus a-prefixed async variants. MCP: oneshot_browser_connect_account, oneshot_browser_connect_account_status. HTTP: POST /v1/tools/browser/profiles/{id}/setup/start with { "start_url": "..." }; /setup/link with {} for a fresh link, or with start_url when none is open (otherwise 409 no_setup); /setup/status and /setup/finish with {}. Only the owner can run setup. Start reuses an open setup. Run no other tasks during setup. Finish saves the session and checks the stored cookies; if the check fails, the profile is kept: retry finish. Setup expires after 15 minutes; the profile survives. Setup endpoints are free. A saved profile skips a new 2FA challenge only while the site accepts its session. OneShot stores no TOTP seeds.