> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usebruno.com/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, and an optional description for what the variable represents in the Pre Request Vars section
* Save your changes

![Request Variables](https://mintcdn.com/bruno-a6972042/KbpwWkeN627E4ypz/images/screenshots/variables/request-variables.webp?fit=max\&auto=format\&n=KbpwWkeN627E4ypz\&q=85\&s=d55c8ce0080908f04a4067c8045176a7)

## Using a Request Variable

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

![Request Variables Usage](https://mintcdn.com/bruno-a6972042/KbpwWkeN627E4ypz/images/screenshots/variables/request-variables-usage.webp?fit=max\&auto=format\&n=KbpwWkeN627E4ypz\&q=85\&s=bf389d38cf4e3dc299063f71028ba3e8)

#### 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");
```
