---
title: "Store encrypted browser sessions (write-only)"
method: PUT
path: "/v1/browser-profiles/{name}"
tags: ["Browser profiles"]
---

# Store encrypted browser sessions (write-only)

`PUT /v1/browser-profiles/{name}`

## Request

- Base URL: `https://api.shardflux.dev`
- URL: `https://api.shardflux.dev/v1/browser-profiles/{name}`
- Auth: HTTP bearer

## Path parameters

- `name` string, required

## Request body

- object
  - `scope` union, required
    - 'project'
    - object
      - `workspace_id` string, uuid, required: UUIDv7, lowercase canonical form.
  - `sites` object[], required
    - `site` string, required
    - `storage_state` object, required
      - `cookies` object[], required
        - `name` string, required
        - `value` string, required
        - `domain` string, required
        - `path` string, required
        - `expires` number, required
        - `httpOnly` boolean, required
        - `secure` boolean, required
        - `sameSite` union, required
          - 'Strict'
          - 'Lax'
          - 'None'
        - `partitionKey` string
      - `origins` object[], required
        - `origin` string, required
        - `localStorage` object[], required
          - `name` string, required
          - `value` string, required
  - `project_id` string, uuid: UUIDv7, lowercase canonical form.

## Response `200`

Default Response

- BrowserProfile
  - `name` string, required
  - `scope` union, required
    - 'project'
    - object
      - `workspace_id` string, uuid, required: UUIDv7, lowercase canonical form.
  - `sites` object[], required
    - `site` string, required
    - `cookie_count` integer, required
    - `origins` string[], required
    - `updated_at` string, date-time, required: RFC 3339 UTC timestamp with Z.
  - `fingerprint` string, required

## Other responses

- `4XX`: Default Response
- `5XX`: Default Response

---

[API](https://skmtc.dev/shardflux/apis/shardflux-api.md) · [All operations](https://skmtc.dev/shardflux/apis/shardflux-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shardflux/apis/shardflux-api/revisions/ea685f7b39c4?raw)
