Import
Courier imports collections and specs from other tools and turns them into .http files.
Start an import
Section titled “Start an import”- Click Import… in the sidebar or the command palette, or press ⌘I.
- Drop files anywhere on the window.
- With no folder open, Import collection… on the welcome screen creates a folder, then imports into it.
A preview shows the folders and requests Courier will create and where they go: a new subfolder named after the collection, or the top of the current folder. Choose what to do if a file already exists: Keep both (the new one gets -2 added to its name), Skip it or Replace it. Courier never overwrites variables you already have.
After the import, a report lists anything that couldn’t be converted.
Supported formats
Section titled “Supported formats”Postman
Section titled “Postman”Collections v2.0 and v2.1, plus any number of Postman environment files at the same time.
- Folders become folders, and each request a
.httpfile, in the collection’s order. - Bodies (raw, URL-encoded, form-data with file parts, GraphQL), Bearer, Basic and API-key auth, path variables and descriptions come along.
- Collection variables go to
$shared, and environments to the env files, with secret values in the private file. - Scripts aren’t run. Lines like
pm.environment.set("x", pm.response.json().y)become aclient.global.set(…)response handler. Anything else is kept as a comment and listed in the report.
Insomnia
Section titled “Insomnia”v4 JSON exports and v5 YAML collections.
- Folders and requests: REST, GraphQL and WebSocket. gRPC requests come without their
.proto. - Bearer, Basic, API key, Digest, OAuth 1, OAuth 2 and AWS auth.
- The base environment becomes
$shared, and sub-environments become environments. {{ _.name }}becomes{{name}}. Template tags such as{% response … %}are kept and listed in the report.
Pick the collection folder with Bruno collection folder…, or drop .bru files.
- Folders and
seqorder, bodies (JSON, text, XML, form, multipart, GraphQL), auth,assertblocks (as# @assertlines) and docs come along. collection.bruandfolder.brubecome folder settings.- Environments come from
environments/*.bru.vars:secretnames are added to the private file for you to fill in. - Bruno scripts and tests use a different API, so they’re imported commented out and listed.
OpenCollection YAML, Bruno’s newer format, works the same way, as one file or one file per request.
OpenAPI and Swagger
Section titled “OpenAPI and Swagger”OpenAPI 3.0 and 3.1, and Swagger 2.0, in JSON or YAML.
- Tags become folders and operations become requests, named from the summary or
operationId. {{baseUrl}}comes from the first server. Path parameters become{{variables}}.- Required query parameters are filled in. Optional ones are listed in the description.
- Bodies use the spec’s example, or a sample built from the schema.
- Security schemes become headers with
{{token}}or{{apiKey}}variables.
Recordings from a browser’s developer tools (Save all as HAR). Each entry becomes a request, grouped by host, without pseudo-headers and the headers the browser adds itself.
WSDL 1.1. Courier creates a SOAP request for each operation of every SOAP 1.1 and 1.2 port, with the SOAPAction header and an envelope skeleton built from the schema. They’re plain POST requests, so variables, scripts and checks all work.
Paste a cURL command in the import dialog’s Paste tab, or straight into the URL bar.