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

notte = NotteClient()
with notte.Session() as session:
    # perform some operation that creates cookies
    # ...
    # then save the cookies to json
    cookies = session.get_cookies()
    with open("cookies.json", "w") as f:
        json.dump(cookies, f)
{
  "cookies": [
    {
      "name": "<string>",
      "value": "<string>",
      "domain": "<string>",
      "path": "<string>",
      "httpOnly": true,
      "expirationDate": 123,
      "hostOnly": true,
      "sameSite": "Lax",
      "secure": true,
      "session": true,
      "storeId": "<string>",
      "expires": 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

session_id
string
required

Response

Successful Response

cookies
Cookie · object[]
required