Tutorial: Environments and variables
Time: ~10 minutes · Level: Intermediate
Steps
- Open Environments in the sidebar (or the environment UI your version uses).
- Create an environment
Localwith variablebase_url=https://httpbin.org. - Create
Stagingwithbase_url=https://httpbin.org(same value is fine for practice). - In the request panel, set the URL to
`/get`(literal placeholder syntax). - Select
Localin the environment selector (toolbar). Send — should succeed. - Switch to
Stagingand Send again. - Add another variable
token(fake value). Add an Authorization header whose value uses the same placeholder style fortoken(e.g.Bearerplus 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