Top-Level Structure
A Bruno YAML request file contains the following top-level sections:info
Store metadata about your request.| Field | Type | Description |
|---|---|---|
name | string | The display name of the request |
type | string | The request type (http for HTTP requests, folder for folders) |
seq | number | Sequence number that determines sort position in the UI |
tags | array | Optional tags for filtering requests during collection runs |
http
The HTTP request configuration.http.method
The HTTP method. Supported values:GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD, TRACE, CONNECT (uppercase).
http.params
Parameters as an array of objects with atype field to distinguish query vs path parameters.
| Field | Type | Description |
|---|---|---|
name | string | The parameter name |
value | string | The parameter value |
type | string | Either query or path |
disabled | boolean | Whether the parameter is disabled (optional) |
http.headers
Request headers as an array of objects.| Field | Type | Description |
|---|---|---|
name | string | The header name |
value | string | The header value |
disabled | boolean | Whether the header is disabled (optional) |
http.body
The request body configuration.| Body Type | Description |
|---|---|
json | JSON body |
text | Plain text body |
xml | XML body |
form-urlencoded | Form URL-encoded data |
multipart-form | Multipart form data |
graphql | GraphQL query |
http.auth
Authentication configuration. Credentials are specified directly under theauth object. Use inherit to inherit authentication from the parent folder or collection.
none, inherit, basic, bearer, apikey, digest, oauth2, awsv4, ntlm.
runtime
The runtime section contains scripts and assertions that execute during the request lifecycle.runtime.scripts
JavaScript code to run at different points in the request lifecycle.| Script Type | Description |
|---|---|
before-request | Runs before the request is sent |
after-response | Runs after the response is received |
tests | Test assertions using the Chai assertion library |
runtime.assertions
Declarative assertions without writing JavaScript code.| Field | Type | Description |
|---|---|---|
expression | string | The value to evaluate (e.g., res.status, res.body.name) |
operator | string | The comparison operator (eq, neq, isString, isNumber, etc.) |
value | string | The expected value (for comparison operators) |
settings
Request-level settings.| Field | Type | Description |
|---|---|---|
encodeUrl | boolean | Whether to URL-encode the request URL |
timeout | number | Request timeout in milliseconds (0 = no timeout) |
followRedirects | boolean | Whether to follow HTTP redirects |
maxRedirects | number | Maximum number of redirects to follow |