Monitoring your APIs

Postman Monitors give you continuous visibility into the health and performance of your APIs. Setting up a new monitor is fast and flexible. Keep watch on a single endpoint, run API tests using your existing test scripts, or chain together a sequence of requests to validate critical API flows.

Once the monitor is running you’ll get alerted to any failures, so you can quickly identify and address issues before your API’s consumers are affected.

Contents

Collection-based monitors

A collection-based monitor runs a series of requests from the Postman cloud on a schedule you set. When creating a monitor, you choose a collection with the requests you want to run. These can be basic requests that simply indicate an endpoint is up and reachable. More complex collections can make use of chained requests, test scripts, and environment variables to validate API responses and functionality.

You can configure your monitors to run as frequently as you would like, depending on your Postman plan. For paid plans, monitors can be scheduled to run as often as every five minutes. For free plans, monitors can be scheduled to run as often as every hour. You can even specify which region of the world you’d like to run the collection from (paid plans only).

Get alerted by email if a test fails or errors occur, or set up integrations to be notified over Slack and other channels. All results are recorded on the monitor’s dashboard, so you can view past results or see trends over time.

Using collection-based monitors

Because they run Postman requests and scripts, collection-based monitors can be used to monitor APIs in a variety of ways. Here are some things you can do with collection-based monitors:

  • Check API health and performance. Ensure the API is up and running in production and other environments.
  • Validate API response structure and data. Ensure the API is functioning according to specifications.
  • Test complex, multi-step workflows. Ensure that critical API flows as well as edge cases are working as expected.
  • Continuously conduct user acceptance, smoke, and regression tests. Proactively identify issues so you can address them before they affect API consumers.
  • Run tests in multiple environments and regions. Ensure your APIs are working everywhere. (Running monitors in multiple regions requires a paid Postman plan.)
  • Monitor the security of your endpoints. Continuously test APIs for known security vulnerabilities.
  • Visualize results on the monitor dashboard. Get better visibility into API performance over time and identify trends.

Want to see Postman Monitors in action? Visit the Postman API Monitoring Examples public workspace to find example collections for some common monitoring use cases. You can collaborate on the collections in the workspace by creating a fork, or modify the collections for your team's use by exporting and importing them into your team workspace.

Running collections in a monitor

There are some differences between running collections in a Postman monitor and running them using the Collection Runner. See below for details.

Variables

You cannot import existing global variables into a monitor, but you can create new global variables during a run. Global and environment variables can be updated and subsequently used during a monitoring run, however they will immediately revert to their original values.

If you require persistent variables, you can add a call to update your environment using the Postman API.

Console output

For your security and privacy, Postman does not log request or response bodies in the console. Postman also does not log headers, as they may include items like cookies and authorization keys.

Time limits

Monitors are limited to a maximum of five minutes, including all HTTP requests, responses, pre-request scripts, and test scripts.

File uploads

You cannot attach files to requests, unlike in the request builder, but you can upload data as a raw request body.

Data files

You cannot attach data files, unlike in the collection runner, but you can access files using APIs such as Google Docs, Google Sheets, and Dropbox.

Multiple iterations

Monitors only run one iteration by default, but you can use setNextRequest() to run multiple iterations.

Multi-region monitoring

If you are on a paid plan, you can select one or more geographic regions you'd like your monitor to run from, or have Postman automatically select a region for you. If you are on a free plan, Postman always selects a region from you. If you want to manually select specific regions, upgrade your Postman plan

If you’re interested in a region that’s not currently available when creating a monitor, contact the Postman support team.

Accessible APIs

Because monitors run in the Postman cloud, all URLs must be publicly available on the Internet. A monitor cannot directly access your localhost or run requests behind a firewall. You can run monitors using static IPs to overcome this issue. Static IPs are available on Postman Professional and Enterprise plans.

Next steps

Learn how to set up a new monitor.