Skip to main content
Bruno provides seamless integration with OpenAPI Specification (OAS), allowing you to import API definitions through both files and URLs. This feature enables you to quickly create collections in Bruno by leveraging existing OpenAPI documentation.
Bruno supports importing OpenAPI 2.0 and 3.x specifications, in YAML or JSON.

Prerequisites

Before importing an OpenAPI specification, ensure you have:
  • A valid OpenAPI 2.0 or 3.x specification file (YAML or JSON format)
  • Or a publicly accessible URL that returns such a specification

Import Methods

Bruno offers two ways to import OpenAPI specifications:
  1. File Import: Import from a local OpenAPI specification file
  2. URL Import: Import directly from a publicly accessible OpenAPI specification URL
  3. Bruno Converter: Programmatically convert an OAS file to a Bruno collection by using our converter ↗.

Importing from a File

  1. Open Bruno and navigate to your collection
  2. Click on the context menu (three dots) in the collections panel
  3. Select Import from the dropdown menu
  4. Choose OpenAPI option
select-openapi-file
  1. Browse and select your OpenAPI specification file (.yaml or .json)
  2. Configure the import settings (see Import Settings below)
  3. Click Import to create the collection

Importing from a URL

  1. Select OpenAPI and choose the URL option
  2. Provide the public URL of the OpenAPI file you’re trying to import
import-openapi-url
  1. Configure the import settings (see Import Settings below)
  2. Click Import to create the collection
After importing the OAS file, the sample collection will look like this: import-collection-oas

Configuring Import Settings

  1. Select Import Method: Choose either file or URL import
  2. Choose Folder Arrangement: Select your preferred grouping method from the dropdown:
    • Paths: Group by URL path structure
    • Tags (default): Group by OpenAPI tags
  3. Optionally enable Check for Spec Updates to connect OpenAPI Sync on import
  4. Expand Advanced and configure:
    • Naming requests (Summary, operationId, Description, or Path)
    • Inherit authentication from collection folder (optional)
  5. Click Import to create your collection
Import OpenAPI collection settings

Import Settings

Bruno provides flexible options for organizing your imported OpenAPI collection. You can choose how to group your API endpoints into folders during the import process.

Folder Arrangement Options

When importing an OpenAPI specification, you can choose between two folder grouping strategies:

Path-Based Grouping

Path-based grouping organizes endpoints into folders based on their URL path structure. This approach mirrors how APIs are typically organized and provides better compatibility with Postman imports. Example:

Tag-Based Grouping (default)

Tag-based grouping organizes endpoints into folders based on the tags defined in the OpenAPI specification. This approach groups endpoints by their functional purpose as defined by the API author. Example:
Tag Name Formatting: BRU format supports alphanumeric characters, hyphens (-), and underscores (_) in tag names. When importing collections with tags containing spaces, Bruno automatically replaces them with underscores. For example, User Management becomes User_Management. To preserve original tag names, use the OpenCollection (YAML) format instead.

Naming requests

In the import modal, expand Advanced and choose Naming requests. This controls how requests in the generated collection are named.
If an operation does not have the selected field, Bruno falls back through summary, operationId, description, then method and path. Every derived name is single-line, markdown-free, and length-capped so filenames stay within OS path limits. Duplicate names still go through Bruno’s existing de-duplication.
When Check for Spec Updates is enabled, Bruno saves the naming choice as requestNameSource in the collection’s OpenAPI sync config (next to folder grouping). Later syncs reuse that choice. Bulk Import shows the same Naming requests dropdown in its Advanced section when the selection includes an OpenAPI spec. One choice applies to every OpenAPI spec in the batch.

Inherit authentication from collection folder

In the import modal, expand Advanced and turn on Inherit authentication from collection folder if you want one auth config for the collection instead of a copy on every request. With the switch on:
  • Operations that share the collection scheme show Auth: Inherit
  • If the spec has no global security but its secured operations share one scheme, that scheme is promoted to the collection
  • Operations with a different scheme keep their own auth
  • security: [] maps to auth mode none
On import, the spec’s security scheme is added to the collection. Operations with a different scheme keep their own auth. Re-sync updates URLs, params, and bodies without overwriting collection auth or inheritance.
When sync is enabled, Bruno saves the choice as authPlacement (request or collection) in the OpenAPI sync config. Later syncs follow that value. Missing or unknown values use request. Bulk Import shows the same switch in its Advanced section when the selection includes an OpenAPI spec. One choice applies to every OpenAPI spec in the batch.

Example OpenAPI Specifications

You can test the import functionality using these example OpenAPI specifications:
  1. Petstore API:
    • URL: https://petstore3.swagger.io/api/v3/openapi.json
    • Description: A sample API for a pet store