#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

API Testing · Postman Basics

Postman Basics for Beginners

Postman basics for beginners — HTTP fundamentals, requests, collections, variables, auth, assertions, and a 6-week roadmap to become productive fast.

Tracks
Postman Basics · Live Interactive
Level
—
Concept group
Key Concept
—
Main idea
What It Enables
—
Practical value
Request → Collection → CI → QA
Click a level to explore Postman concepts — from first request to automated CI runs.

Home / Tutorials / API Testing Guides / Postman Basics for Beginners

API Testing · Postman Basics

Postman Basics for Beginners

HTTP REQUESTS COLLECTIONS AUTOMATION Level 1 HTTP Basics Methods + status Foundation Level 2 Requests GET, POST, headers, body Build Level 3 Collections Group + variables + auth Organise Level 4 Automation Newman + CI Scale
Postman basics — Level 1: HTTP, Level 2: Requests, Level 3: Collections, Level 4: Automation with Newman + CI.

Quick summary — Postman basics for beginners

Postman is the standard tool for API testing. This guide walks through the fundamentals — HTTP methods, requests, collections, variables, auth, and assertions — with a realistic 6-week roadmap to become productive.

In this guide you will learn:

  1. Level 1: HTTP basics — methods, status codes, headers.
  2. Level 2: Sending requests — GET, POST, body, JSON.
  3. Level 3: Collections — grouping, variables, auth.
  4. Assertions — how Postman decides pass/fail.
  5. Automation — Newman CLI + CI integration.

SECTION 01Level 1: HTTP basics

Before using Postman, you need to understand HTTP — the protocol every API speaks. Here's the breakdown:

Concept What It Means Example Why It Matters
GET Read data GET /users Fetch a list of items
POST Create data POST /users Submit new data
PUT / PATCH Update data PUT /users/1 Modify existing data
DELETE Delete data DELETE /users/1 Remove data
Status Codes API response category 200, 201, 400, 401, 404, 500 Understand success vs. failure
Common HTTP Methods:

GET     → read data (safe, no side effects)
POST    → create data
PUT     → replace data entirely
PATCH   → update part of the data
DELETE  → remove data

Every request consists of:
- Method (GET, POST, etc.)
- URL (e.g. https://api.example.com/users)
- Headers (metadata: auth, content type)
- Body (for POST / PUT / PATCH)
- Query params (?key=value)

Example:
POST https://api.example.com/users
Headers:
  Content-Type: application/json
  Authorization: Bearer 
Body:
  {
    "name": "Aarav",
    "email": "aarav@example.com"
  }
http-basics.md
Key insight: If you don't understand HTTP status codes, no Postman skill will save you. Learn what 200, 401, 404, and 500 mean first — it's the foundation of every API test.

SECTION 02Level 2: Sending requests

Once you understand HTTP, sending requests in Postman becomes intuitive. Here's how:

Feature What It Does When to Use Beginner Tip
URL bar Where you type the endpoint Every request Paste the full URL including https://
Method dropdown Chooses GET, POST, etc. Every request Match the API documentation
Headers tab Adds metadata like Content-Type POST / PUT / auth Content-Type: application/json is common
Body tab Data you send to the API POST / PUT / PATCH Pick "raw" + "JSON" for JSON APIs
Send button Fires the request Anytime Watch the response panel below
Your first GET request (5 steps):

1. Open Postman → click "New" → "HTTP Request"
2. Method: GET (default)
3. URL: https://jsonplaceholder.typicode.com/users
4. Click Send
5. Look at the response panel:
   - Status: 200 OK
   - Time: 320 ms
   - Body: JSON list of users

What you just did:
- Sent a GET request to a real API
- Received a JSON response

Practice exercise:
- Change the URL to .../users/1
- Run again
- Notice: you get a single user object instead of a list

Great test APIs to practice on:
- https://jsonplaceholder.typicode.com
- https://reqres.in
- https://httpbin.org
sending-requests.md
Key insight: Practice on public test APIs (jsonplaceholder, reqres, httpbin) — they let you try every HTTP method without breaking anything. Ten sent requests teach more than an hour of reading.

SECTION 03Level 3: Collections & variables

Collections are how Postman organizes requests — the foundation of real QA work. Here's how they work:

Feature What It Does Beginner Use Advanced Use
Collections Groups of related requests Save API calls Reusable test suites
Folders Nested groups inside collections Organize by resource Feature-based structure
Variables Reusable values Store base URL Chain requests with tokens
Environments Set of variables per context Dev vs. staging CI/CD configs
Create your first collection (2 minutes):

1. In Postman, click "Collections" on the left
2. Click "New Collection"
3. Name it "User API Tests"
4. Inside it, add folders:
   - Auth
   - Users
   - Posts
5. Drag your existing requests into folders

Why collections matter:
- Save requests so you don't retype them
- Share with your team
- Run entire folders as a test suite
- Export/import for version control

Real-world structure:
📁 My API Tests
  📁 Auth
    POST /login
    POST /refresh
  📁 Users
    GET /users
    GET /users/:id
    POST /users
  📁 Posts
    GET /posts
    POST /posts
collections-variables.md
Key insight: Variables separate testing from code. Instead of editing URLs every time, change one variable — and everything works. Collections + environments are how QA teams scale.

SECTION 04Assertions — how Postman validates

Assertions turn Postman from "look at the response" into a real test tool. Here's how:

Common Assertions (Tests tab):

// 1. Status code
pm.test("Status is 200", () => {
  pm.response.to.have.status(200);
});

// 2. Response time
pm.test("Response is fast", () => {
  pm.expect(pm.response.responseTime).to.be.below(500);
});

// 3. Body contains a value
pm.test("Contains success flag", () => {
  const data = pm.response.json();
  pm.expect(data.success).to.be.true;
});

// 4. Array length
pm.test("Returns 10 users", () => {
  const data = pm.response.json();
  pm.expect(data).to.have.lengthOf(10);
});

// 5. Field exists
pm.test("User has an id", () => {
  const data = pm.response.json();
  pm.expect(data).to.have.property("id");
});

// 6. Content type header
pm.test("Returns JSON", () => {
  pm.response.to.have.header("Content-Type");
});

Where to write them:
- Open the request
- Click the "Tests" tab
- Paste JS code
- Click "Send"
- Look at the "Test Results" tab

Green check = pass, red X = fail
Chaining requests (real QA pattern):

Flow:
1. POST /login → returns token
2. GET /users → uses token
3. POST /posts → creates a post
4. GET /posts/:id → confirms creation

In Postman:
- Store the created post ID from step 3:
  pm.environment.set("postId", data.id);

- Use it in step 4:
  {{baseUrl}}/posts/{{postId}}

To run the whole flow automatically:
1. Click the collection name
2. Click "Run"
3. Choose "Run collection"
4. Postman runs every request in order
5. Assertions report pass/fail
6. Variables chain between requests

This is where QA testing starts to feel
like automation — a real user journey
tested in seconds.
assertions.md

SECTION 05Automation with Newman + CI

Newman is Postman's CLI — it runs collections headlessly in CI. Here's how to use it:

  • Install Newman — npm install -g newman (requires Node.js).
  • Export collection — Save your collection as JSON from Postman.
  • Run from CLI — newman run my-collection.json -e environment.json.
  • Add to CI — Add a step in GitHub Actions, GitLab CI, or Jenkins that runs Newman after deploy.
  • Report results — Newman supports HTML reporters: --reporters cli,html.
Pro tip: Postman + Newman in CI is how modern QA teams test APIs continuously. Every deploy runs the collection, and any failure blocks the release. This is the skill employers want.

SECTION 06Interview Q&A — Postman basics

Q1What is Postman used for?

Postman is a tool for sending HTTP requests and testing APIs. You use it to verify endpoints, check responses, run collections, and automate API tests in CI. It's the industry standard for API testing.

Q2What's the difference between a request and a collection?

A request is a single HTTP call (method + URL + body). A collection is a saved group of requests. Collections are how you organize tests, share them with your team, and run them as a suite.

Q3How do variables work in Postman?

Variables store reusable values (base URL, tokens, IDs). You reference them with double curly braces: {{baseUrl}}. They can be set manually (environment), automatically from responses (Tests tab), or per-collection.

Q4What are assertions in Postman?

Assertions are JavaScript tests written in the "Tests" tab. They check status codes, response bodies, headers, response times, and more. Pass/fail results appear in the Test Results tab after you hit Send.

Q5What is Newman?

Newman is the command-line version of Postman. It runs collections in CI/CD pipelines without the GUI. You install it via npm and trigger it from GitHub Actions, GitLab CI, or Jenkins to automate API tests on every deploy.

SECTION 07Test yourself — Postman quiz

Five questions. No sign-up.

0 / 5

Pick an answer to see why it is right or wrong.

SECTION 08Frequently asked questions

Do I need coding to use Postman?

Not for basics — the GUI handles most work. But assertions and scripting in the Tests tab use JavaScript. It's a light amount of code, but not zero-code in practice.

What's the best way to practice Postman?

Use public test APIs — jsonplaceholder.typicode.com, reqres.in, httpbin.org. Build collections, add assertions, and try chaining requests. Real practice beats tutorials.

Is Postman free?

Postman has a free plan that covers most beginner and small-team needs. Paid plans add collaboration features and higher rate limits. Newman (the CLI) is free and open source.

What's the difference between Postman and Insomnia?

Both are API testing tools. Postman is more widely adopted with a larger ecosystem (Newman, CI integration, team collaboration). Insomnia is lighter and preferred by some developers. Postman skills transfer easily.

How long does it take to learn Postman basics?

1-2 weeks is enough to be productive — sending requests, using variables, and writing assertions. Getting comfortable with collections and Newman takes another 2-3 weeks.

Classroom & online · Noida

Master API testing — from basics to automation

Our API Testing Training Course covers Postman, REST fundamentals, Newman, and CI/CD — with real projects that get you hired.

₹15,500 · full programme ₹24,000
  • Postman + REST API testing
  • Newman + CI integration
  • Real projects
  • Weekday & weekend batches