Quick Start
Bruno is a Git-friendly, local-first, open-source API client designed for developers. This guide will take you from the basics to more advanced features, helping you build a strong understanding of Bruno.
Prerequisites
- A basic understanding of HTTP and REST
- Bruno installed (v3.x)
- Git (Needed for collaboration via Git)
- Node.js (Needed for the CLI workflow)
Getting started
You can refer to the Bruno Starter Guide collection for solutions:
Fetch in Bruno button to open the collection in Bruno, or git clone the repository Bruno Starter Guide.
Work through the challenges in order. Each step assumes the previous one.
1. Create a collection
Objective: Create a collection (sequence of requests) to store your API requests.
- Open Bruno (workspace home).
- Click the + icon (top-left) → Create collection.
![]()
- Enter a name Bruno Starter Guide (click on settings icon for advanced options) and choose the desired folder on your system.

- Select file format (YAML or BRU -> YAML recommended) and click Create.

Congratulations! You have successfully created your first collection. The UI should look like this:

Success Criteria: - Collection is visible in the sidebar with name Bruno Starter Guide. - Collection is created with the desired file format (YAML recommended).
2. Create a request
Objective: Create and execute your first request from the collection.
- Click the collection context menu (...) → create a New Request.

- Select:
typeHTTP - (GraphQL, gRPC, WebSocket, or cURL is also supported)Request Nameas01-github-apiURLashttps://api.github.com/users/usebruno.

- Execute request by clicking on Send button or pressing Cmd/Ctrl + Enter.

You have successfully sent your first request. The UI should look like this:

Success Criteria:
- Status is 200 (Green text - 200 OK)
- Response body with details of the usebruno user.
3. Send a request with data
Objective: Create a request with POST method and send data with API request.
- Create a new request with:
- Request type as HTTP
- Request name as
02-echo-bru - method as POST
- URL as
https://echo.usebruno.com

- Go to the Body tab and select → JSON as an option

- Add the following JSON data to the body of the request:
{
"title": "Bruno",
"msg": "Loved by developers. Built for developers."
}
- Execute request by clicking on Send button or pressing Cmd/Ctrl + Enter.

You have successfully sent JSON data to the API. This is Bruno's echo endpoint, so you will receive the same data in the response.
Success Criteria: - JSON data is sent to the API. - Response body contains the same JSON data.
4. Create an environment
Objective: Create an environment variable to store a URL and reuse it with {{baseURL}}.
- Open the Environments settings (top-right — No environment).

-
Click the Create button in the Collection section.
-
Name the environment
localin the environments popup

- Add the following variable to the environment:
- Name:
baseURL - Value:
https://echo.usebruno.com

-
Click the Save button.
-
Go back to
02-echo-brurequest and set theURLto{{baseURL}}and select thelocalenvironment from the environment dropdown.

You have successfully created your first environment variable and reused it in the request. Bruno supports multiple types of variables; read more about them: Environment variables
Success Criteria:
- Environment is created with the name local.
- Environment variable baseURL is added with the value https://echo.usebruno.com.
- Request 02-echo-bru is executed successfully with the URL set to {{baseURL}}
- Response status is 200.
5. Write a test case
Objective: Write an assertion and test script to validate the response of the request.
- Open your 02-echo-bru request.
- Go to the Assert tab and enter the following details:
| Expression | Operator | Value |
|---|---|---|
res.status |
equals |
200 |
res.body.title |
equals |
Bruno |
- Execute the request and go to the Tests tab in the response section to confirm the assertion passes (green).

- Go to the Tests tab in the request section and copy and paste the snippet below:
test("body has title", function () {
expect(res.getBody()).to.have.property("title");
});
test("200 status code", function () {
expect(res.getStatus()).to.eql(200);
});
- Execute the request (Cmd/Ctrl + Enter) and confirm tests pass (green).

Success Criteria: - Assert and Tests pass (green) without any errors.
Read more about test and assertions: Tests introduction
6. Write a script
Objective: Send request with pre-request script to set the body of the request.
req object is only available in pre-request script.
- Create a new request with:
- Request type as HTTP
- Request name as
03-script-request - method as POST
- URL as
https://echo.usebruno.com

- Go to the Script → Pre-request tab and enter the snippet below:
const body = {
name: "Bruno",
msg: "I love opensource devtools"
};
req.setHeader("Content-Type", "application/json");
req.setBody(body);
console.log(req.getName());

Open Dev Tools from the bottom-right corner and you will see the console output of the script.
Congratulations, you have successfully written a script to set the body of the request with header values and console logs visible in Dev Tools.
Success Criteria:
- Script is executed successfully and console output is visible in the Dev Tools.
- Response body is set to the body of the request with req.setBody() function.
- Header is set to the json content type with req.setHeader() function.
Read more about script: JavaScript Reference
7. Authentication
Objective: Send a request with authentication to the API.
- Create a new request with:
- Request type as HTTP
- Request name as
04-auth-request - method as GET
- URL as
https://httpbin.org/basic-auth/usebruno/1234

- Go to request Auth tab and select Basic Auth from the Auth Type dropdown list.

- Enter the username and password as
usebrunoand1234respectively. - Execute the request (Cmd/Ctrl + Enter).

You'll see authenticated set to true in the response body.
You have successfully sent a request with authentication to the API.
Success Criteria:
- Authentication is set to Basic Auth with the username and password.
- Response body contains authenticated set to true.
Read more about authentication: Authentication
8. Collection Runner
Objective: Run all requests in the collection using collection runner.
- Go to the collection context menu (...) and click Run.

- Click on Configure requests to run and select all requests in the collection.

- Click Run Selected Requests button to start the run.

You'll see all requests running one by one in the collection runner.

Success Criteria: - All requests are running one by one in the collection runner. - Response status is 200 for all requests. - Response body contains the data of the request.
Read more about collection runner: Collection Runner
9. API Documentation
Objective: Create automated API documentation for the collection.
- Go to collection context menu (...) and select Generate Docs.

- Click on the Generate button to generate automated API documentation.

- Save the documentation file (html) to your desired location.
You have successfully generated API documentation for the collection. The generated documentation is in html format and can be opened in any browser.
You can share it with your team or deploy it to your own server.

Click on Try button to open it as API playground.

Success Criteria: - API documentation is created for the collection. - HTML file is generated with the content of the collection.
Read more about API documentation: API Documentation
10. Git collaboration
Objective: Initialize Bruno collection as a Git repository, push it to GitHub.
- Open the Git panel (top bar) and click Initialize to turn the collection folder into a repository.

- Stage and commit your changes from the Git panel (or use
git addandgit commitcommands in a terminal).

- Go to GitHub
- Create an empty repository (click on the + button and select New repository)
- Enter name bruno-starter-guide and other details and copy the HTTPS URL
https://github.com/<<yourusername>>/bruno-starter-guide.git - Go to collection Git panel and click on Remotes from bottom-left corner.

- Click the Add Remote button and enter the following details:
- Remote Name:
origin - URL:
https://github.com/<<yourusername>>/bruno-starter-guide.git

- Push your default (main) branch to the remote repository.

Go to your remote repository and you will see the collection is pushed to the remote repository. You can share it with your team and collaborate on it.
Success Criteria: - Git repository is initialized for the collection. - Remote repository is created and connected. - Collection is pushed to the remote repository.
More: Using the Git UI
11. Run a request through the CLI
Objective: Install Bruno CLI and run all requests in the collection from a terminal.
- Install Bruno CLI:
npm install -g @usebruno/cli - Open a terminal and navigate to the Bruno Starter Guide collection (folder with
bruno.json).
cd path/to/bruno-starter-guide
- Run all requests:
bru run - Optional: run with a named environment, e.g.:
bru run --env local
You will see all requests running one by one in the collection runner, along with an execution summary table showing metrics and results.
Success Criteria: - All requests are running one by one in the collection runner. - Response status is 200 for all requests. - Response body contains the data of the request.
More: Bruno CLI
12. OpenAPI specification
Objective: Export your collection as an OpenAPI document (shareable API description).
- Open the collection context menu (...) and select the Share option.

- Go to the Export tab, select OpenAPI Specification and click the Proceed button.

- Enter the name of the file and location, then click the Create button.

You have successfully exported your collection as an OpenAPI document. The OpenAPI file is created with a .yaml extension and stored in your file system.
You can view and import the OpenAPI file in Bruno. Please refer to OpenAPI Specification for more details.
Success Criteria:
- OpenAPI file is created where you chose and opens without errors
- Exported OpenAPI file has a .yaml extension.
More: OpenAPI Specification
13. Response Visualizer
Objective: Use Bruno's response visualizer to render API response data as an interactive table.
- Create a new request with:
- Request type as HTTP
- Request name as
05-visualizer - method as POST
-
URL as
https://echo.usebruno.com -
Go to the Script → Post-response tab and enter the snippet below:
const rowData = [
{ id: 1, name: "John", role: "Developer" },
{ id: 2, name: "Smith", role: "Designer" },
{ id: 3, name: "Harry", role: "Product Manager" }
];
const columnDefinitions = [
{ field: "id", filter: true, floatingFilter: true },
{ field: "name", filter: true, floatingFilter: true },
{ field: "role", filter: true, floatingFilter: true }
];
bru.visualize('table', {
name: 'tableEmp',
provider: 'ag-grid',
props: {
rowData,
columnDefinitions
}
});
-
Execute request by clicking on Send button or pressing Cmd/Ctrl + Enter.
-
Go to the Visualize tab in the response section to see the rendered table.

Success Criteria: - The post-response script runs without errors. - The Visualize tab displays an interactive table with three rows (John, Smith, Harry) and filterable columns.
More: Response Visualizer
Congratulations on completing the Quick Start guide! You have learned the basics of Bruno and how to use it to create API requests. Feel free to dive into the advanced guides to learn more about Bruno.
- Auth — Authentication
- Secrets — .env and secret managers
- Git Collaboration — Git integration (GUI)