Postman: a first collection of API checks
Postman lets you save API calls, share the settings, and add checks. Build a small collection and run it again whenever the app changes.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a recipe card box. A cook keeps recipe cards in one box. Every card lists the same kitchen settings at the top: the oven, the pan, the salt. A cook who changes the oven once changes it for the whole box.
Each card also says what the dish should look like when it is ready. The cook checks the dish against the card, every time.
A is a box of calls. The environment is the kitchen settings. The test script is the line on each card that says what ready looks like.
Tom, the tester at Daily List, a to-do list app, keeps one box for the task API. When the app changes, he runs the whole box again and sees which cards fail.
PLAIN WORDS · 1 in this section
- pan
- a wide cooking dish used on a stove
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Keeping calls and their checks in one reusable place, like a box of recipe cards with the kitchen settings written once.
- Save the calls
- Set the environment
- Add the checks
- Run them all
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The box of recipe cards | A Postman collection |
| The kitchen settings | An environment |
| The line that says what ready looks like | A test script |
| Cooking every card in order | Running the collection |
WHERE THIS PICTURE STOPS
- A recipe box is on paper, but a collection can run itself.
- Kitchen settings are few, but an environment can hold many values.
- A cook can see the dish, but a script only sees what it checks.
HOOK
One box, one set of settings, every card checked.
TELL A FRIEND
A box of recipe cards: the settings once, each dish checked against its card.
OFTEN MIXED UP WITH Your first scripted API check: from a manual request to a repeatable test. That topic writes one scripted check by hand. This one keeps many calls in a collection and runs them again and again.
PRACTISE AND KEEP
Sources for this topic — 4 sources
- Market practice
Write scripts to test API response data in Postman (Postman Learning Center) ↗ — Postman · Postman Learning Center: test scripts use pm.test with a name and a function, and Chai-style pm.expect for checks (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Store and reuse values using variables (Postman Learning Center) ↗ — Postman · Postman Learning Center: variables hold values such as a base URL so a request can be reused in many places (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Newman command reference (Postman Learning Center) ↗ — Postman · Postman Learning Center: Newman runs an exported collection from the command line, with -e for an environment file (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Newman CLI Overview — Postman documentation Latest (v12) ↗ — Postman · Latest(v12)NewmanCLIOverview:legacycollectionv2.1JSON,no further updates/fixes,currentPostmanCLI supportsv3;record runner/collection versions (relevant primary passages opened6November2026).
Opened relevant primary passages on6November2026 via normal web search and document view. Current vendor page opened: Newman supports collectionv2.1 JSON, not current collectionv3; no further updates or fixes. Postman CLI handles v3. Legacy exercises explicitly retain compatible v2.1 files.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.