Keeping API collections aligned with a constantly evolving OpenAPI or Swagger specification can be frustrating. Teams often end up manually re-importing specs, recreating endpoints, and dealing with inconsistencies between the API documentation and their testing tools.
OpenAPI Sync in Bruno solves this problem by automatically keeping your Bruno collection aligned with a remote OpenAPI specification. It tracks changes, removes the manual effort of re-importing specs, and helps teams stay synchronized with their API definitions.
There are two ways to connect your Bruno collection with OpenAPI Sync:
You will then see two options:
After selecting the spec source, click Connect.
You can also enable OpenAPI Sync during the import process.
Click Review and Sync Collection to preview the changes before confirming the sync.
The OpenAPI Sync interface provides a quick overview of your collection’s synchronization status.
The overview dashboard shows the current sync status, pending updates from the specification, and changes made locally in the collection.
| Term | Meaning |
|---|---|
| Total in Collection | Total number of endpoints currently in your Bruno collection. |
| In Sync with Spec | Endpoints that match the OpenAPI specification. |
| Changed in Collection | Endpoints modified locally in Bruno (URL, params, headers, or request body). |
| Spec Updated Pending | Changes detected in the remote spec that have not yet been applied locally. |
This tab shows changes that were made directly in the Bruno collection.
The following elements are being tracked:
Tests, scripts, and request assertions are preserved.
If the remote OpenAPI specification changes, this tab will display the pending updates.
You can then choose how to handle those updates:
Once you’re ready, click Confirm and Sync Collection.
When you synchronize your collection with the OpenAPI spec:
collection/resources/spec/ for offline use.OpenAPI Sync automatically checks for specification updates every 5 minutes.
You can adjust these settings:
From the connection settings, you can enable or disable automatic checks, disconnect the sync, or modify how frequently Bruno checks for spec updates.
You can view the connected OpenAPI specification directly inside Bruno.
This opens a read-only Swagger-style interface where you can inspect the API specification without modifying it.
You can start playing around with Bruno OpenAPI Sync using the Swagger Petstore specification (v3). Import it as a new collection using the URL and make some changes (params, path, etc.) to get hands-on experience with how OpenAPI Sync works.
API specifications evolve constantly. Without automation, developers end up manually updating collections, leading to mismatches between the API documentation and testing environments.
With OpenAPI Sync, Bruno enables teams to:
For teams working heavily with OpenAPI-driven APIs, this feature significantly improves workflow efficiency and consistency.