> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# setCookies

<Tip>
  Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
</Tip>

[Source: node-sdk/src/session.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/session.ts)

Upload cookies to the session.

```typescript theme={null}
Session.setCookies(cookies: Cookie[]): Promise<ExecutionResponse>;
```

## Parameters

<ParamField body="cookies" type={"Cookie[]"} required />

## Returns

```typescript theme={null}
Promise<ExecutionResponse>
```

## Example

```typescript theme={null}
await session.setCookies([{ name: 'token', value: 'abc', domain: 'example.com', path: '/', httpOnly: false }]);
```

## Related types

* [Cookie](/typescript-sdk-reference/types/cookie)
* [ExecutionResponse](/typescript-sdk-reference/types/executionresponse)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.