Export an API collection to Postman, Insomnia, Bruno, HAR or cURL

Not everyone who needs your requests uses the same tool. A partner's QA team is on Postman. A contractor prefers Bruno. An incident runbook wants plain curl commands. Requestarium exports a collection, a folder or a single request to each of them.

Pick a format

FormatFileKeepsLeaves out
Requestarium JSON.tairi-collection.jsoneverythingnothing
Postman Collection v2.1.postman_collection.jsonfolders, HTTP and GraphQL requests, auth, variables, scripts (as text)other protocols, request options
Insomnia v4.insomnia.jsonfolders, HTTP and GraphQL requests, auth, variablesother protocols, scripts
Thunder Client.thunder-collection.jsonfolders, HTTP and GraphQL requests, authother protocols, variables, scripts
Bruno.bruno.zipfolders, HTTP and GraphQL requests, auth, variables, scripts (as text), docsother protocols, OAuth 2.0, environments
OpenAPI 3.0.openapi.yamlone operation per method and path; folders become tagsauth values, scripts, other protocols
HAR 1.2.harrequests as they would be sentfolders, scripts, docs
.http file.httpHTTP and GraphQL requests, collection variablesfolders, scripts, other protocols
cURL.curl.shone curl per HTTP requestfolders, scripts, docs

Export as… shows what the chosen format can't hold before you download, so there are no surprises on the other side.

For Bruno, unzip the file and open the folder in Bruno. For Thunder Client, import it from the Collections menu there, and recreate variables in a Thunder Client environment.

Inherited settings

A request that inherits auth from its folder or collection would lose it in a format without folders. So the export writes it down where it's needed:

  • Insomnia, HAR, .http and cURL put the collection's or folder's auth onto each request that inherits it.
  • HAR and cURL fill in collection and folder variables (the nearest folder wins); .http keeps collection variables as file variables.
  • Collection and folder scripts are left out of Insomnia, HAR, .http and cURL, and the export dialog names the folders whose settings were changed or left out.

Exporting a single folder or request still carries the collection's settings it inherits.

Secrets

Credentials typed into auth fields are exported as {{variable}} references in every format, so an export never contains your tokens or passwords. The recipient fills them in their own environment. Values typed directly into headers or bodies are exported as written, which is one more reason to use variables for them. See keeping API keys out of your collections.

Scripts in Postman and Bruno

Scripts are exported as text. Requestarium scripts use the pm API (with cm as an alias), so most run in Postman as they are. Calls that don't exist in the other tool, or a Requestarium-only alias, need a look before they run there.

In the IDEs and CLI

In VS Code, JetBrains IDEs and the browser extension: Export as JSON…, Export OpenAPI 3… and Export to Other Format… save through the IDE's dialog. From a terminal:

Terminal
requestarium export "Orders API" --format openapi3 --out orders.openapi.yaml
requestarium export "Orders API" --out orders.json

Moving between Requestarium servers

For a copy that keeps everything, including environments, use Requestarium JSON. See moving a collection and its environments to another server.