> ## Documentation Index
> Fetch the complete documentation index at: https://notte-experiment-visibility-md-links.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# get_cookies

> Gets cookies from the session

```python theme={null}
import json
cookies = session.get_cookies() # get the cookies from the session
with open("cookies.json", "w") as f:
    json.dump(cookies, f) # save the cookies to a json file
```

## Returns

`list`\[[`CookieDict`](/sdk-reference/misc/cookiedict.md)]: The response containing the list of cookies in the session.

## Raises

* `ValueError`: If the session hasn't been started yet (no session\_id available).
