Skip to main content
POST
cURL
With url, only that site’s cookies are kept and the import replaces that site; without it, every site in the payload is imported. Cookies are encrypted with the profile’s key before storage and are never returned by any endpoint.Use default as the profile_id to import into the owner’s default profile, creating it if needed.

Authorizations

Authorization
string
header
required

A personal API key or an OAuth 2.0 access token. Personal API keys also require the x-auth-key header with your user ID.

Path Parameters

profile_id
string
required

A profile id, or default.

Body

application/json
cookies
object[]
required

Cookies in chrome.cookies.Cookie or CDP Cookie shape.

Minimum array length: 1
url
string

Import only the cookies for this site and replace what the profile had for it. Omit to import every site in cookies.

Maximum string length: 2048
team_id
string

Import into a team-owned profile instead of a personal one.

Response

Cookies imported.

profile
object
required
imported
object
required