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
| Format | File | Keeps | Leaves out |
|---|---|---|---|
| Requestarium JSON | .tairi-collection.json | everything | nothing |
| Postman Collection v2.1 | .postman_collection.json | folders, HTTP and GraphQL requests, auth, variables, scripts (as text) | other protocols, request options |
| Insomnia v4 | .insomnia.json | folders, HTTP and GraphQL requests, auth, variables | other protocols, scripts |
| Thunder Client | .thunder-collection.json | folders, HTTP and GraphQL requests, auth | other protocols, variables, scripts |
| Bruno | .bruno.zip | folders, HTTP and GraphQL requests, auth, variables, scripts (as text), docs | other protocols, OAuth 2.0, environments |
| OpenAPI 3.0 | .openapi.yaml | one operation per method and path; folders become tags | auth values, scripts, other protocols |
| HAR 1.2 | .har | requests as they would be sent | folders, scripts, docs |
.http file | .http | HTTP and GraphQL requests, collection variables | folders, scripts, other protocols |
| cURL | .curl.sh | one curl per HTTP request | folders, 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,
.httpand 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);
.httpkeeps collection variables as file variables. - Collection and folder scripts are left out of Insomnia, HAR,
.httpand 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:
requestarium export "Orders API" --format openapi3 --out orders.openapi.yaml
requestarium export "Orders API" --out orders.jsonMoving between Requestarium servers
For a copy that keeps everything, including environments, use Requestarium JSON. See moving a collection and its environments to another server.