Skip to main content
POST
/
sessions
/
{session_id}
/
cookies
python
import json
from notte_sdk import NotteClient

notte = NotteClient()
# load the cookies from json and inject them in the session
with open("cookies.json", "r") as f:
    cookies = json.load(f)

with notte.Session() as session:
    cookies = session.set_cookies(cookies)
{
  "success": true,
  "message": "<string>"
}

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

session_id
string
required

Body

application/json
cookies
Cookie · object[]
required

Response

Successful Response

Used for page operation like setting cookies

success
boolean
required

Whether the operation was successful

message
string
required

A message describing the operation