Skip to content

Quick start

This guide takes you from an empty window to a request with a variable and a passing test. You need Courier installed.

A workspace is a folder on your disk. Courier stores each request in it as a .http file.

  1. Open Courier. With no folder open, you see the welcome screen.

  2. Click Create a new folder…, pick a name and a location.

  3. Courier creates the folder with:

    • a starter request,
    • http-client.env.json with a local environment,
    • a .gitignore that keeps the secrets file out of git.

Already have a Postman, Insomnia or Bruno collection? Use Import collection… on the welcome screen instead. See Import.

  1. Press ⌘N to create a request.

  2. Type a URL in the URL bar, for example https://httpbin.org/json.

  3. Press ⌘↵ to send.

The response appears on the right: the status, time and size at the top, and the body below. The Timing tab shows how long DNS, the TCP connection, the TLS handshake and the server each took. See Response viewer.

  1. Press ⌘E to open the environment editor.

  2. In the local environment, add a variable baseUrl with the value https://httpbin.org.

  3. Back in the request, change the URL to {{baseUrl}}/json. Typing {{ lists the variables you can use.

  4. Press ⌘S to save, then ⌘↵ to send.

Switch environments with ⌘1 to ⌘9. See Environments.

  1. Open the request’s Assert tab.

  2. Add a row: target res.status, operator eq, value 200.

  3. Send the request again. The response’s Tests tab shows the check as passed.

The check is saved in the file as one line:

# @assert res.status eq 200

See Assertions for every operator.