Postman API

The Postman API endpoints enable you to integrate Postman within your development toolchain.

You can add new collections, update existing collections, update environments, and add and run monitors directly through the API. This enables you to programmatically access data stored in your Postman account.

You can get started with the API by forking its collection. For more details, see the Postman API documentation.

You will need an API key to access the Postman API.

The Postman API is rate limited.

Generating a Postman API key

You need a valid API Key to send requests to the Postman API. To generate an API key:

  1. Navigate to your Postman API Keys page. Select your avatar in the upper-right corner > Account Settings. Then select Postman API keys.

  2. If you do not have any keys yet you will be prompted to create one. Select Generate API Key.

    Generate API Key
  3. Enter a name for your key and select Generate API Key.

  4. Copy your key, then Close.

Copy your API key

Once you have API keys generated you can manage them within your workspace. Select ... next to a key to regenerate or delete it.

View your API keys

Use API Key Settings to specify expiration periods for your keys.

API key settings

Authentication

You will need to authenticate your requests to the Postman API by sending your API Key in the X-Api-Key header of every request you make.

You can also send the key as an apikey URL query parameter. An API key sent as part of the header has a higher priority in case you send the key using both request header and query parameter.

Your API Key provides access to any Postman data you have permissions for.

You can store your API key in a variable. If you name it postman_api_key, the Postman API collection will use it automatically

Rate Limits

API access rate limits are applied at a per-key basis in unit time.

Access to the API using a key is limited to 60 requests per minute. Every API response includes the following set of headers to identify the status of your consumption.

Header Description
X-RateLimit-Limit The maximum number of requests that the consumer is permitted to make per minute.
X-RateLimit-Remaining The number of requests remaining in the current rate limit window.
X-RateLimit-Reset The time at which the current rate limit window resets in UTC epoch seconds.

Free API calls with your Postman account

Your Postman account gives you a limited number of free Postman API calls per month. You can check your usage limits through the Postman API itself or the account usage page.

Next steps

You can combine the Postman API with Newman to integrate Postman with your CI/CD workflow.