Collection variables are variables that are scoped to a specific collection. They are useful for storing variables that are used across multiple requests in a collection.Documentation Index
Fetch the complete documentation index at: https://bruno-a6972042-mintlify-testing-jsonbody-jsonschema-1777266.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Creating a Collection Variable
- Go to Collection Settings
- Go to the Variables tab
- Add your variable name, value in the Pre Request Vars section
- Save your changes

Using a Collection Variable
You can use the{{varName}} syntax to use a collection variable in a request.

Access Collection Variable inside scripts
You can also use thebru.getCollectionVar() function to get the value of a runtime variable and use it inside your pre request scripts.
Import/Export Collection Variables
For detailed instructions on importing and exporting collection environment variables, see the Import/Export Environments guide.