---
title: "Bring sites signed in elsewhere into your browser [write]"
method: POST
path: "/browser_profiles/{scope}/imports"
tags: ["browser_profiles"]
---

# Bring sites signed in elsewhere into your browser \[write\]

`POST /browser_profiles/{scope}/imports`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/browser_profiles/{scope}/imports`
- Auth: HTTP bearer

Merges per site like a session's save: new and changed cookies win, nothing is deleted. Used by AgentSky for Mac and `sky login import`. Only a workspace key registered as that workspace's service runtime may use the workspace scope; it writes into the workspace's service browser, never into a person's browser, and never changes a share. Any other workspace key gets 403. Cookie domains are normalized as hostnames (including international and internal hosts); malformed domains return 400. An import cannot restore a site whose removal is incomplete.

## Path parameters

- `scope` 'mine' | 'workspace', required

## Request body

- ImportBrowserState
  - `state` object, required: Playwright storage state: cookies (name, value, domain, path, expires, httpOnly, secure, sameSite) and per-origin localStorage
    - `cookies` object[], required
    - `origins` object[]

## Response `200`

Merged

- object
  - `sites` string[]

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/browser_profiles/:scope/imports/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
