Postman: organise collections with folders, import a request from curl, and set values in a pre-request script
Group requests in folders, turn a curl command into a Postman request, and set a value in a script that runs before the request is sent.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a filing cabinet, a courier slip and a sticky note. Drawers keep related files together. A slip a colleague hands you can be copied onto a new file. A sticky note is read just before the file goes out.
Tom is a tester at Daily List, a to-do list app. Leo hands him a slip. Mei needs the cabinet to stay tidy.
What it is: This is still Postman, the program on your computer that calls an (application programming interface). An API is the door one program uses to talk to another. A is a named group of requests inside a collection. Folders can sit inside folders. An imported curl request is a request Postman builds when you paste a curl command. Curl is a command-line program people use to share one call. The script run order is collection, then folder, then the request. A pre-request script runs before the call is sent. Postman is not curl, and a folder is not a separate API.
Why it matters: Twenty loose requests are hard to share. A fixed title in the body collides on every run. Tom uses folders so people can find a call. He imports Leo's curl so he does not type it again. He sets a fresh title before each send.
PLAIN WORDS · 1 in this section
- collides
- clashes because it uses the same thing
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 Use folder scripts and curl import.
- Drawer
- Slip
- Note
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The drawer in the cabinet | A folder |
| Copying a courier slip onto a new file | Importing a curl command |
| A sticky note read before the file goes out | A pre-request script |
| Notes read from the cabinet to the file | The script run order |
WHERE THIS PICTURE STOPS
- A drawer is fixed, but folders can sit inside folders.
- A copied slip is on paper, but an import should be looked over.
- A note is read by one clerk, but scripts can run at three levels.
HOOK
Drawers, slip, sticky note.
TELL A FRIEND
A cabinet: drawers, a slip and a note.
OFTEN MIXED UP WITH Postman requests in depth: headers, JSON bodies and signing in. That topic sends bodies, headers and a . This one groups requests, imports one from curl and sets values in a script.
PRACTISE AND KEEP
Sources for this topic — 2 sources
- Implementation-specific
Scripts in Postman (Latest v12) ↗ — Postman · Latest v12 intro to scripts: collection→direct-child folder→request pre/post-response order, pm.test and scripts; opened 6 November 2026.
Official product documentation, not a general standard. Relevant sections and exact release/access limitations are recorded in the V27 full-depth audit. Screens and rolling documentation can change; synthetic Daily List examples are editorial fixtures, not publisher product guarantees.
- Implementation-specific
Store and reuse values using variables (Postman docs) ↗ — Postman · Latest v12 Variables: scope precedence, active environment, string storage and Vault; opened 6 November 2026.
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.
Verification supplement, 6 November 2026: Actual current v12 page opened: global/collection/environment/data/local scope precedence; local variable value distinct from local scope; shared values used by some cloud features. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.
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.