Export a profile's state
Returns the current revision's storage state (Playwright `storageState` JSON) so you can load it into your own browser or move it to another project. It contains live session cookies: treat the response like a password. Requires `vision:write`, the same scope that can replace the state.
GET
/v1/vision/profiles/{profile_id}/state
Returns the current revision's storage state (Playwright `storageState` JSON) so you can load it into your
own browser or move it to another project. It contains live session cookies: treat the response like a
password. Requires `vision:write`, the same scope that can replace the state.
Authentication
Bearer Token (b3os_sk_ API key or b3os_pat_ token) API Key (cookie: __Host-b3os_session)
Path Parameters
profile_id
string
required
path
The profile ID (`prof_…`).
Example:
"prof_01m5t3v4507bhcb5jqrgzfvfsk"Responses
200
The storage state.
application/jsoncookies
object[]
REQUIRED
Array of:
name
string
REQUIRED
value
string
REQUIRED
domain
string
REQUIRED
Host or .domain the cookie belongs to.
path
string
REQUIRED
expires
number
REQUIRED
Unix time in seconds; -1 for a session cookie.
httpOnly
boolean
REQUIRED
secure
boolean
REQUIRED
sameSite
unknown
REQUIRED
Enum:
Strict, Lax, NonepartitionKey
string
CHIPS partition (top-level site, e.g. https://example.com) for partitioned cookies.
_crHasCrossSiteAncestor
boolean
Chromium partition detail Playwright emits for partitioned cookies; preserved as is.
origins
object[]
REQUIRED
Array of:
origin
string
REQUIRED
Serialized origin: scheme://host[:port], no path.
localStorage
object[]
REQUIRED
Array of:
name
string
REQUIRED
value
string
REQUIRED
indexedDB
object[]
Array of:
name
string
REQUIRED
version
integer
REQUIRED
stores
object[]
REQUIRED
Array of:
name
string
REQUIRED
autoIncrement
boolean
REQUIRED
keyPath
string
keyPathArray
string[]
...
records
object[]
REQUIRED
...
indexes
object[]
REQUIRED
...
opfs
object[]
Array of:
path
string
REQUIRED
type
unknown
REQUIRED
Enum:
file, directorybase64
string (byte)
400
The request failed validation (`invalid_request`, `invalid_url`).
401
Missing, malformed, expired or revoked credentials (`unauthorized`).
403
Authenticated but not allowed (`forbidden`, `egress_denied`).
404
No such profile in this project (`profile_not_found`).
429
A rate, concurrency or quota limit applies (`rate_limited`, `concurrency_limited`, `quota_exceeded`).
500
Something failed inside B3OS (`internal`). Retry with backoff.
503
The node or the product is not available right now (`node_unavailable`, `product_unavailable`, `capacity_unavailable`).
curl -X GET 'https://beta-api.b3os.org/v1/vision/profiles/prof_01m5t3v4507bhcb5jqrgzfvfsk/state' \ -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://beta-api.b3os.org/v1/vision/profiles/prof_01m5t3v4507bhcb5jqrgzfvfsk/state', { method: 'GET', headers: { "Authorization": "Bearer YOUR_API_TOKEN" }});const data = await response.json();console.log(data);
import requestsheaders = { 'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://beta-api.b3os.org/v1/vision/profiles/prof_01m5t3v4507bhcb5jqrgzfvfsk/state', headers=headers)print(response.json())
200
Response
{ "cookies": [ { "name": "session", "value": "<cookie value>", "domain": "app.example.com", "path": "/", "expires": 1793000000, "httpOnly": true, "secure": true, "sameSite": "Lax" } ], "origins": []}
API Playground
Try this endpoint
GET
/v1/vision/profiles/{profile_id}/state