Automate publishing to your Private API Network using the Postman API
You can use the Postman API to programmatically manage your Private API Network’s resources. With it, you can automate the publication of your team’s Private API Network.
Getting started
You can get started by forking the Postman API collection in the Postman Public Workspace. This collection has all the available Private API Network endpoints.
You will also need an API key to use the Postman API. For information, see Generate a Postman API key.
Access rate limits for your Postman account depend on your Postman plan. For more information, see Postman API rate limits.
Create a Private API Network folder
This HTTP request creates a folder in your Private API Network. A folder can contain multiple elements, such as workspaces, collections, or APIs.
It’s recommended that you use your Postman Vault to store sensitive data, such as API keys, as vault secrets. Only you can access and use values associated with your vault secrets, and vault secrets aren’t synced to the Postman cloud. If you want to share sensitive data with collaborators, you can store it in an environment as a variable set as sensitive data.
By default, this API creates the folder in the root Home folder of your Private API Network:
The same HTTP request in Postman:

On success, your request’s response will look similar to the following:
You can also find your new folder in your Private API Network’s root Home directory:
Save the id value in the response. For example, save it as a collection variable called {{folderId}}. You can then use it as the parentFolderId value in other requests, such as adding elements to the folder or subfolders.
Add elements to your Private API Network folder
Your Private API Network folder’s elements (collections, APIs, and workspaces) are links to the original element. If that source element changes, then your Private API Network automatically reflects these changes.
In the following examples, the {{folderId}} variable references the id value returned when you created your Private API Network folder (for example, 1).
Add a collection to a folder
This HTTP request adds a collection to your Private API Network folder.
The response to this request will look similar to the following:
Add an API to a folder
Before you add an API to your Private API Network folder, first make sure it’s published. Private API Network APIs must have a published version associated with it.
Then, use the following HTTP request to add an API to your Private API Network folder:
The response to this request will be similar to the following:
Add a workspace to a folder
This HTTP request adds a workspace to your Private API Network folder:
The response to this request will be similar to the following: