---
title: "Import cookies into a persona's jar"
method: PUT
path: "/pool/cookies"
---

# Import cookies into a persona's jar

`PUT /pool/cookies`

## Request

- Base URL: `https://oyabrowser.com`
- URL: `https://oyabrowser.com/pool/cookies`
- Auth: HTTP bearer

Merges cookies into one of the caller's persona jars. The persona's browsers pick them up on their next visit to each site. Use it to bring in logins exported from another browser, or to copy one persona's logins to another. Audited.

## Query parameters

- `persona` string

## Request body

- object
  - `cookies` object[], required
    - `name` string, required
    - `value` string, required
    - `domain` string, required
    - `path` string
    - `secure` boolean
    - `httpOnly` boolean
    - `sameSite` string
    - `expirationDate` number: Seconds since the epoch; `expires` is accepted too. Omit for a session cookie.

## Response `200`

What was merged

- object
  - `ok` boolean
  - `persona` string
  - `imported` integer
  - `skipped` integer: Cookies without a name, value or domain, or already expired.
  - `total` integer: Cookies in the jar afterwards.

## Other responses

- `400`: No cookie list, or more than 20000 cookies

---

[API](https://skmtc.dev/oyabrowser/apis/oya-browser-api.md) · [All operations](https://skmtc.dev/oyabrowser/apis/oya-browser-api/llms.txt) · [OpenAPI document](https://skmtc.dev/oyabrowser/apis/oya-browser-api/revisions/748c4b34f8e4?raw)
