Import OpenAPI Specification (OAS)
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 Specification (OAS) V3 files only.
Prerequisites
Before importing an OpenAPI specification, ensure you have:
- A valid OpenAPI V3 specification file (YAML or JSON format)
- Or a publicly accessible URL containing the OpenAPI specification
Import Methods
Bruno offers two ways to import OpenAPI specifications:
- File Import: Import from a local OpenAPI specification file
- URL Import: Import directly from a publicly accessible OpenAPI specification URL
- Bruno Converter: Programmatically convert an OAS file to a Bruno collection by using our converter.
Importing from a File
- Open Bruno and navigate to your collection
- Click on the context menu (three dots) in the collections panel
- Select Import from the dropdown menu
- Choose OpenAPI V3 File option
- Browse and select your OpenAPI specification file (
.yaml
or.json
) - Click Import to create the collection
Importing from a URL
The import method for URL option is same as for URL but you need to select OpenAPI V3 URL as option and provide URL of OAS file which is publically available.
After, Importing the OAS file the sample collection will looks like this.
Example OpenAPI Specifications
You can test the import functionality using these example OpenAPI specifications:
- Petstore API:
- URL:
https://petstore3.swagger.io/api/v3/openapi.json
- Description: A sample API for a pet store
- URL: