Setting Up Postman
Postman is the most popular API testing tool - used by over 25 million developers. Let's get it set up.
Installing Postman
Option 1: Desktop App (Recommended)
- Go to [postman.com/downloads](https://www.postman.com/downloads/)
- Download for your OS (Windows, Mac, or Linux)
- Install and launch
Option 2: Web Version
Visit [web.postman.co](https://web.postman.co) to use Postman in your browser.
> Tip: The desktop app is better for testing local APIs (localhost).
---
Creating an Account
While optional, a free account lets you:
- Sync collections across devices
- Collaborate with team members
- Access cloud features
Click Sign Up and create an account with email or Google.
---
The Postman Interface
Let's understand the key areas:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ [New] [Import] [Workspaces โผ] โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ Collections โ โ GET โผ โ https://api.example.com/products โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ My Shop โ โ
โ โ Productsโ Params Auth Headers Body Pre-req Tests โ
โ โ Cart โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Orders โ โ
โ โ โ
โ Environmentsโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Dev โ Response โ
โ โ Staging โ Body Cookies Headers Test Results โ
โ โ Prod โ โ
โ โ { "products": [...] } โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Key Areas:
| Area | Purpose |
|---|---|
| Sidebar | Collections, environments, history |
| Request URL | Where you enter the API endpoint |
| Method dropdown | GET, POST, PUT, DELETE, etc. |
| Request tabs | Params, Headers, Body, Tests |
| Response section | Shows API response, status, time |
---
Creating Your First Workspace
Workspaces help organize your API testing projects.
- Click Workspaces in the header
- Click Create Workspace
- Name it:
E-commerce API Testing - Choose Personal (or Team if collaborating)
- Click Create
---
Creating a Collection
Collections group related API requests together.
- In the sidebar, click + next to Collections
- Name it:
Shop API - Add a description:
API tests for our e-commerce platform
Your collection structure will look like:
๐ Shop API
๐ Products
GET List Products
GET Get Product by ID
GET Search Products
๐ Cart
GET View Cart
POST Add to Cart
DELETE Remove from Cart
๐ Orders
POST Create Order
GET Get Order Status
---
Quick Settings to Configure
1. SSL Certificate Verification
For local development (localhost), you might need to disable SSL verification:
Settings โ General โ SSL certificate verification โ OFF> Only disable for local testing, never for production APIs!
2. Request Timeout
Default is 0 (infinite). Set a reasonable timeout:
Settings โ General โ Request timeout โ30000 (30 seconds)
3. Auto-save
Enable auto-save to never lose your work:
Settings โ General โ Autosave โ ON---
Testing Your Setup
Let's verify Postman is working with a simple public API:
- Click + to open a new request tab
- Enter this URL:
https://jsonplaceholder.typicode.com/posts/1 - Make sure GET is selected
- Click Send
You should see:
{
"userId": 1,
"id": 1,
"title": "sunt aut facere repellat provident occaecati excepturi",
"body": "quia et suscipit\nsuscipit recusandae..."
}
Check the response panel:
- Status:
200 OKโ - Time: Should be under 1 second
- Size: Shows response size in bytes
---
Keyboard Shortcuts
Speed up your workflow:
| Action | Windows/Linux | Mac |
|---|---|---|
| Send request | Ctrl + Enter | Cmd + Enter |
| New request | Ctrl + N | Cmd + N |
| Save request | Ctrl + S | Cmd + S |
| New tab | Ctrl + T | Cmd + T |
| Close tab | Ctrl + W | Cmd + W |
| Search | Ctrl + K | Cmd + K |
---
Practice: Create Your Structure
Set up folders for our e-commerce API testing:
- Create Collection:
Shop API - Add Folders:
Products
- Cart
- Orders
- Users
Right-click collection โ Add Folder
Your sidebar should look like:
๐ Shop API
๐ Products
๐ Cart
๐ Orders
๐ Users
---
Key Takeaways
- Postman is available as desktop app or web version
- Workspaces organize your projects
- Collections group related API requests
- Folders within collections keep things tidy
- Learn keyboard shortcuts to work faster
Next up: Your First API Request - let's send some real requests!