Skip to content

Tutorial: Environments and variables

Time: ~10 minutes · Level: Intermediate

Steps

  1. Open Environments in the sidebar (or the environment UI your version uses).
  2. Create an environment Local with variable base_url = https://httpbin.org.
  3. Create Staging with base_url = https://httpbin.org (same value is fine for practice).
  4. In the request panel, set the URL to `/get` (literal placeholder syntax).
  5. Select Local in the environment selector (toolbar). Send — should succeed.
  6. Switch to Staging and Send again.
  7. Add another variable token (fake value). Add an Authorization header whose value uses the same placeholder style for token (e.g. Bearer plus the variable).

Checklist

  • [ ] URL resolves with no unreplaced placeholders left in the sent request
  • [ ] Switching environments changes variable values
  • [ ] Disabled variables do not apply (toggle one off and test)

Related: Environments & variables · Sending requests