browser_download_profile

Summary: Browser Download ProfilePOST /api/execute/browser_download_profile

Retrieves a previously persisted identity file from the server directory and returns its encrypted contents as a base64-encoded string. By reading directly from the centralized storage repository, this operation can export any saved persona by name regardless of which session originally wrote the file or whether that instance remains open. If the requested filename lacks a `.json` extension, the lookup resolver appends it automatically before locating the record on disk. The exported payload is cryptographically wrapped so sensitive session tokens, authentication cookies, and custom relay credentials can traverse untrusted networks or rest in external databases safely. Callers can later pass the resulting archive directly into identity ingestion endpoints, which detect and unwrap the cipher format without manual pre-processing or external key management.

Parameters

NameTypeRequiredDescription
context_idstringyesActive session handle authorizing the file retrieval request against the server storage repository.
profile_namestringyesFilename of the saved persona record on disk to export as base64-encoded encrypted content.

Usage

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

See Also