Skip to main content
This page documents the structure of OpenCollection YAML files used in Bruno.

Top-Level Structure

A Bruno YAML request file contains the following top-level sections:

info

Store metadata about your request.

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 a type field to distinguish query vs path parameters.

http.headers

Request headers as an array of objects.

http.body

The request body configuration.

http.auth

Authentication configuration. Credentials are specified directly under the auth object. Use inherit to inherit authentication from the parent folder or collection.
Supported auth types: none, inherit, basic, bearer, apikey, digest, oauth1, oauth2, awsv4, ntlm, wsse.

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.

runtime.assertions

Declarative assertions without writing JavaScript code.

settings

Request-level settings.

docs

Request-level documentation in Markdown format.