> ## Documentation Index
> Fetch the complete documentation index at: https://bruno-a6972042-mintlify-71caebff.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Folder Variables

Folder variables are variables that are scoped to a specific folder. They are useful for storing variables that are used across multiple requests in a folder.

## Creating a Folder Variable

* Go to Folder Settings (can be accessed from dropdown menu of the folder in the sidebar)
* Go to Vars Tab
* Add your variable name, value in the Pre Request Vars section
* Save your changes

<img src="https://mintcdn.com/bruno-a6972042-mintlify-71caebff/9jc2Za9fgmoXrJwK/v2/images/screenshots/variables/folder-variables.webp?fit=max&auto=format&n=9jc2Za9fgmoXrJwK&q=85&s=715f7a3a05b55351588545c40defc0d7" alt="Folder Variables" width="1212" height="638" data-path="v2/images/screenshots/variables/folder-variables.webp" />

## Using a Folder Variable

You can use the `{{varName}}` syntax to use a folder variable in a request.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-71caebff/9jc2Za9fgmoXrJwK/v2/images/screenshots/variables/folder-variables-usage.webp?fit=max&auto=format&n=9jc2Za9fgmoXrJwK&q=85&s=90b623fcf3b10e66c6b0a1902806e6d0" alt="Folder Variables Usage" width="1209" height="594" data-path="v2/images/screenshots/variables/folder-variables-usage.webp" />

#### Access Folder Variable inside scripts

You can also use the `bru.getFolderVar()` function to get the value of a folder variable and use it inside your scripts.

```javascript theme={null}
let bearerToken = bru.getFolderVar("bearerToken");
```
