Module 1 of 5 in API Testing
Learn API testing with Agent Mode. You build a Movies API collection, then prompt Agent Mode to write tests for status codes, headers, and the shape and values of responses. Approve only tests you can explain.
- You'll build
- A Movies API collection with tests for status codes, headers, response schema, and known values.
- Time
- About 20 min · 3 parts · 6 steps · progress saves as you go
- How it works
- You do each step in Postman, then click Validate. LiftOff checks your workspace and marks the step complete.
- You'll need
- A free Postman account and API key (connect it below)
- A few setup steps, shown below before you start
Connect a Postman API key to check your work
You do each step in Postman, then LiftOff uses your key to look at your workspace and confirm it's done. Connect once and it works for every module. Your key is saved in this browser and is only used to check your work in Postman.
Before you start
You'll need the Postman desktop or web app and a free Postman account. Everything runs against the public Movies API — no API key or authentication required.
This module uses Agent Mode, Postman's built-in AI assistant. It proposes each action and asks for confirmation before running it — unless you've enabled Auto-run, which applies changes without prompting.
Set Up the API to Test
Before you can test an API, you need one. Let Agent Mode build it.
Why We Test, and the Status Line
The status code is the cheapest, highest-value check you can make. Start here.
Trust the Body, Not Just the Status
Status and Content-Type prove you got JSON. They say nothing about whether it's shaped correctly.