Skip to main content
A browser profile is a snapshot of browser state: cookies, local storage, session data. Create a profile from a completed run, then load it into future workflow runs to skip login and setup steps. For conceptual background, see Browser Profiles.
Python uses snake_case (e.g., create_browser_profile); TypeScript uses camelCase (e.g., createBrowserProfile). Parameter tables show Python names. TypeScript names are the camelCase equivalents.
Create a profile from a completed workflow run.

Parameters

You must provide either workflow_run_id or browser_session_id.

Returns BrowserProfile

Example: Create a profile from a login workflow

Session archiving is asynchronous. If create_browser_profile fails immediately after a run or session ends, wait a few seconds and retry. A 400 error saying the session was not configured to generate a browser profile is permanent — recreate the session with generate_browser_profile enabled. See Save a session’s profile.

Request options

Override timeout, retries, or headers for this call by passing request_options (Python) or a second options argument (TypeScript).