browser_save_profile

Summary: Browser Save ProfilePOST /api/execute/browser_save_profile

Serializes the session's live identity configuration, hardware spoofing seeds, and authentication cookies into a server file. During execution, the engine queries the active storage partition to flush all in-memory session and persistent cookies, combines them with the instance's deterministic VM fingerprint parameters, and writes the consolidated record to disk. If the provided filename omits the standard `.json` suffix, the storage handler appends it automatically and sanitizes path separators so files remain confined to the managed workspace directory. The resulting JSON reply contains the canonical filename, which can subsequently be passed to export endpoints for off-server backup or reloaded into future instances. Attempting to persist state from a closed or nonexistent handle fails immediately with a lookup error before any disk write occurs.

Parameters

NameTypeRequiredDescription
context_idstringyesSource session handle whose live fingerprint configuration and cookie jar will be written to disk.
profile_namestringyesBase filename without directory segments used to store the serialized persona on the server.

Usage

result = await browser.save_profile(context_id=context_id, profile_name="value")

See Also