Skip to main content
POST
/
browser
/
{id}
/
cookies
Update cookies for profile
curl --request POST \
  --url https://api.gologin.com/browser/{id}/cookies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "url": "<string>",
    "name": "<string>",
    "value": {},
    "domain": "<string>",
    "path": false,
    "session": false,
    "hostOnly": false,
    "secure": false,
    "httpOnly": false,
    "sameSite": "no_restriction",
    "expirationDate": 123,
    "creationDate": 123
  }
]'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Id of the profile.

Query Parameters

fromUser
boolean

Should be true if you want browser to import it when you run it next time.

cleanCookies
boolean

Should be true if you want browser to erase all cookies before importing new ones.

Body

application/json · object[]

List of cookies to add to profile.

url
string
required
name
string
required
value
object
domain
string
path
string
default:false
session
boolean
default:false
hostOnly
boolean
default:false
secure
boolean
default:false
httpOnly
boolean
default:false
sameSite
enum<string>
Available options:
no_restriction,
lax,
strict,
unspecified
expirationDate
number
creationDate
number