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

# Request Variables

Request variables are variables that are scoped to a specific request. They are useful for storing variables that is used in a specific request.

## Creating a Request Variable

* Go to the Request
* 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-keybindings-docs-1775036576/atyfkDUfRnb-hAsA/v2/images/screenshots/variables/request-variables.webp?fit=max&auto=format&n=atyfkDUfRnb-hAsA&q=85&s=4d71b7abee525d41f24834a7e8f21844" alt="Request Variables" width="1209" height="538" data-path="v2/images/screenshots/variables/request-variables.webp" />

## Using a Request Variable

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

<img src="https://mintcdn.com/bruno-a6972042-mintlify-keybindings-docs-1775036576/atyfkDUfRnb-hAsA/v2/images/screenshots/variables/request-variables-usage.webp?fit=max&auto=format&n=atyfkDUfRnb-hAsA&q=85&s=6b28496363a5e69fe3a77e76fd0da055" alt="Request Variables Usage" width="1209" height="538" data-path="v2/images/screenshots/variables/request-variables-usage.webp" />

#### Access Request Variable inside scripts

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

```javascript theme={null}
let source = bru.getRequestVar("source");
let destination = bru.getRequestVar("destination");
```
