CollectionSettings component and stored in the collection.bru file.
Accessing Collection Settings
The
CollectionSettings component provides multiple tabs, each managing specific configuration:
Overview
Collection metadata and documentation
Headers
Default HTTP headers for all requests
Vars
Collection-level variables
Auth
Collection-wide authentication
Script
Pre-request and post-response scripts
Tests
Collection-level test suite
Presets
URL and request presets
Proxy
HTTP/HTTPS proxy configuration
Client Certificates
SSL/TLS client certificates
Protobuf
Protocol Buffers for gRPC
Overview Tab
TheOverview component displays collection metadata and documentation.
Collection Documentation
From the test suite (bruno-tests/collection/collection.bru):
Use the
docs section to provide an overview of your API collection, including purpose, authentication requirements, and usage guidelines.Headers Tab
TheHeaders component allows you to configure HTTP headers that will be sent with all requests in the collection.
Configuration
Header name (e.g., “User-Agent”, “X-API-Version”)
Header value. Supports variable interpolation:
{{variable}}Toggle to enable/disable headers without deleting them
Example
From the test suite:collection.bru
Header Count Indicator
The Headers tab shows the number of active headers:From CollectionSettings component
Vars Tab
TheVars component manages collection-level variables that can be set and retrieved in scripts.
Variable Types
- Pre-Request Variables
- Post-Response Variables
Variables available before the request is sent.
Variable Scope
Collection Variables
Collection Variables
Accessible throughout the entire collection. Set with
bru.setVar() and retrieved with bru.getVar().Environment Variables
Environment Variables
Environment-specific values. Set with
bru.setEnvVar() and retrieved with bru.getEnvVar().Request Variables
Request Variables
Request-specific variables that don’t persist beyond the request.
Active Vars Count
The Vars tab displays the count of enabled variables:Auth Tab
TheAuth component configures authentication that applies to all requests set to “Inherit” mode.
Supported Auth Types
All authentication modes are available at the collection level:- AWS Sig v4 (
awsv4) - Basic Auth (
basic) - Bearer Token (
bearer) - Digest Auth (
digest) - NTLM Auth (
ntlm) - OAuth 2.0 (
oauth2) - WSSE Auth (
wsse) - API Key (
apikey)
Configuration Example
collection.bru
Inheritance Info
The Auth tab displays this helpful message:Individual requests can override collection auth by selecting a different auth mode instead of “Inherit”.
Script Tab
TheScript component allows you to configure collection-level pre-request and post-response scripts.
Collection Scripts Example
From the test suite:collection.bru
Script Execution Order
When a request is sent:- Collection pre-request script runs first
- Folder pre-request script runs next (if applicable)
- Request pre-request script runs last
- HTTP request is sent
- Request post-response script runs first
- Folder post-response script runs next
- Collection post-response script runs last
Use Cases for Collection Scripts
Token Refresh
Token Refresh
Global Headers
Global Headers
Logging
Logging
Tests Tab
TheTest component allows you to write tests that run for every request in the collection.
Collection-Level Tests Example
collection.bru
When to Use Collection Tests
- Validate response time across all endpoints
- Check for required headers (CORS, security headers)
- Verify authentication is working collection-wide
- Ensure consistent error response formats
Presets Tab
ThePresets component allows you to configure default request settings.
Default base URL for all requests. Can be overridden per request.
Preset Indicator
Proxy Tab
TheProxySettings component configures HTTP/HTTPS proxy settings.
Proxy Configuration
Proxy server hostname or IP address
Proxy server port (e.g., 8080, 3128)
Proxy protocol:
http or httpsOptional proxy authentication:
username: Proxy usernamepassword: Proxy password
Proxy Status Indicator
Client Certificates Tab
TheClientCertSettings component manages SSL/TLS client certificates for mutual authentication.
Certificate Configuration
Domain or host for which the certificate applies (e.g., “api.example.com”)
Path to the client certificate file (.crt, .pem)
Path to the private key file (.key, .pem)
Optional passphrase if the private key is encrypted
Multiple Certificates
You can configure multiple client certificates for different domains:From CollectionSettings
Client certificates are useful for enterprise APIs that require mutual TLS authentication.
Protobuf Tab
TheProtobuf component manages Protocol Buffer definitions for gRPC requests.
Protobuf Configuration
Array of
.proto file paths relative to the collection directoryExample
Directory Structure
Protobuf Status
Settings Storage
All collection settings are stored in thecollection.bru file at the root of your collection folder:
Complete Example
Inheritance Hierarchy
Bruno follows this inheritance hierarchy:Inheritance Behavior by Setting Type
- Headers
- Auth
- Scripts
- Tests
- Variables
Additive: Collection headers + Folder headers + Request headersDuplicate headers are overridden (request > folder > collection)
Best Practices
Use Collection Auth
Use Collection Auth
Configure auth once at the collection level and use “Inherit” in requests to avoid duplication.
Set Common Headers
Set Common Headers
Put headers that apply to all requests (API version, user agent) at the collection level.
Leverage Collection Scripts
Leverage Collection Scripts
Use collection scripts for token refresh, request signing, or logging that applies globally.
Document Your Collection
Document Your Collection
Use the docs section to provide context, auth requirements, and usage guidelines.
Test Common Behavior
Test Common Behavior
Use collection-level tests for response time, status codes, and header validations that apply everywhere.
Environment-Specific Settings
Environment-Specific Settings
Use
{{variables}} in collection settings and configure them per environment.Next Steps
Authentication
Configure collection-level authentication
Scripts
Write collection-level scripts
Tests
Create collection-level tests
Environments
Manage environment variables