Add Status-Code Tests with a Prompt
Hand-writing the same assertion for every request is exactly the kind of repetitive work Agent Mode is built to take off your plate — describe the check once and let it apply the pattern across your whole collection.
-
Open your Movies API collection from Part 1.
-
In Agent Mode, write a prompt like:
Add a post-response test to every request in my Movies API collection that checks the response status code is 200.
-
Review the test scripts Agent Mode proposes, then approve it.
Run the "Auto-Generate Documentation for Endpoints" Template
Postman's Agent Mode template gallery has ready-made prompts curated by role — including ones for API Product Owners who need clean documentation without writing it by hand.
-
Make sure you're in your [Your Name] - AI Basics workspace, with your Movies API collection open.
-
Open the Agent Mode template gallery.
-
Click View all API Product Owner prompts.
-
Under Documentation, find the template titled "Auto-generate documentation for endpoints" — its prompt reads:
Generate documentation for each endpoint, including purpose, parameters, and example responses.
-
Click Run in Agent Mode, and when prompted, point it at your Movies API collection.
-
Review the documentation Agent Mode generates — it writes the description directly onto each request, in the Docs tab.