Manuals / Postman & API Exploration / Ch 2

CoreBeginner35 min read

2. Environments & variables

Postman & API Exploration · 12 pages source format

baseUrl and tokens per env — never hardcode secrets in shared collections.

What you'll learn

  • env vars
  • Secrets
  • {{baseUrl}}

Key idea

Environments swap baseUrl and credentials between local/staging/prod.

Quick check

Best place for an API token…

Do this now

Write 3 notes on: Environments.

Clear?

Practice

Create local + staging envs and parameterize URLs.

Starter
# Environments
# try one small experiment

Do this now

Commit one file practicing Environments.

Clear?

Checklist