Monitors help you check your APIs regularly without doing it yourself. They run tests automatically to catch problems early.
0
0
Creating monitors in Postman
Introduction
You want to check if your API is working every hour.
You need to get alerts if your website is down.
You want to make sure your API returns correct data after updates.
You want to track API performance over time.
You want to share test results with your team automatically.
Syntax
Postman
1. Open Postman. 2. Go to the Monitors tab. 3. Click 'Create a monitor'. 4. Choose a collection to monitor. 5. Set the schedule (how often it runs). 6. Configure environment and region. 7. Save and start the monitor.
You must have a saved collection with tests to create a monitor.
Monitors run in the cloud, so your API must be accessible from the internet or Postman cloud.
Examples
This keeps checking the User API twice every hour automatically.
Postman
Create a monitor to run every 30 minutes for 'User API' collection.
This runs tests once a day using the production settings.
Postman
Create a monitor to run daily at 9 AM for 'Payment API' collection with 'Production' environment.
Sample Program
This monitor will run all tests in the 'Weather API' collection every hour from the US East region.
Postman
1. In Postman, select the 'Weather API' collection. 2. Click 'Monitors' tab. 3. Click 'Create a monitor'. 4. Name it 'Weather API Monitor'. 5. Set schedule to run every 1 hour. 6. Select 'No Environment'. 7. Choose region 'US East'. 8. Click 'Create Monitor'.
OutputSuccess
Important Notes
Monitors can send email notifications if tests fail.
You can view detailed reports for each monitor run in Postman.
Make sure your API endpoints are publicly accessible or accessible from Postman cloud.
Summary
Monitors run your API tests automatically on a schedule.
They help catch problems early without manual testing.
Setting up monitors is easy and requires a saved collection with tests.