Skip to main content
POST
/
profiles
/
{profile_id}
/
cookies
Profile Cookies Set
curl --request POST \
  --url https://api.example.com/profiles/{profile_id}/cookies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cookies": [
    {
      "name": "<string>",
      "value": "<string>",
      "domain": "<string>",
      "path": "<string>",
      "httpOnly": true,
      "expirationDate": 123,
      "hostOnly": true,
      "secure": true,
      "session": true,
      "storeId": "<string>",
      "expires": 123,
      "partitionKey": "<string>"
    }
  ],
  "source_format": "playwright",
  "mode": "replace"
}
'
{
  "success": true,
  "message": "<string>",
  "cookies_count": 123
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-notte-request-origin
string | null
x-notte-sdk-version
string | null

Path Parameters

profile_id
string
required

Body

application/json
cookies
Cookie · object[]
required
Minimum array length: 1
source_format
enum<string>
default:playwright
Available options:
playwright,
chrome
mode
enum<string>
default:replace
Available options:
replace,
append

Response

Successful Response

success
boolean
required
message
string
required
cookies_count
integer
required
mode
enum<string>
required
Available options:
replace,
append