Vars allow you to set variables before request, and after you receive the response.

Vars are available both at collection and request level.

In the Pre Request Variables section, you can write any Strings, Numbers or any valid JavaScript literal.

In the Post Response Variables section, you can write any valid JavaScript expression. The res object is available, allowing you to declaratively parse the response and set variables, instead of writing scripts to do the same.

For parsing the response, you can checkout the response query that allows you to easily query your response.

Example: bru vars

Screenshot showing how to use defined variables in the request body