Back up your Postman collections to , a cloud-based hosting service for Git repositories, with the Postman to integration. You can also back up collections to a custom domain on Enterprise Server.
Setting up a integration requires you to generate a personal access token and configure how you would like to back up your collections.
To import data into Postman from a repository, see Importing from repositories.
With Postman v10 and later, you can connect a repository to an API in the API Builder. Once connected, you can sync your API's definition and associated collections between Postman and . You can switch branches, pull changes from the repository, and push changes to the repository, all from within Postman. To learn more about syncing your API with , see Manage changes with Git in the Postman API Builder.
The legacy Sync API schema integration is no longer available. You can't create new integrations using this legacy integration, and any legacy integrations you created have been removed. Instead, you can connect your API to a Git repository to sync your API's definition between Postman and .
To integrate with , you need a personal access token.
If you don't already have a personal access token, generate a new one. You can use a classic token or a fine-grained token.
repo
and user
scopes.Contents (Read and write)
and Metadata (Read-only)
.Save the generated token to use later.
For more information about generating a token, see the documentation.
You can back up a Postman Collection to a repository. After you create the integration, any new changes to the collection in Postman will also appear in the repository.
From the Home page select Integrations.
Search and select .
Next to Backup a collection, select Add Integration.
Enter your Personal Access Token and select Authenticate and Proceed.
After Postman verifies the token, you can configure the integration:
Postman collections
directory.To finish setting up the integration, select Add Integration.
Postman often checks your collection for changes. If Postman identifies changes when it checks your collection, the changes automatically commit to your repository in JSON format. Go to your repository to view your collections.
You can view your configured integrations on the Browse Integrations page. You can also view integrations that have been configured for a collection by opening the collection and selecting the information icon
in the right sidebar. Learn more about viewing or editing integrations.
You can back up a Postman Collection to a Enterprise Server repository on a custom domain. Follow the same step as backing up collections to with the following differences.
After searching for the integration in Postman, select Add Integration next to Backup a collection (custom domain).
Along with your personal access token, enter the custom domain of your enterprise server (for example, https://my-git-server.example.com
). Then select Authenticate and Proceed.
Configure the integration with your collection, repository, directory, file name, and branch.
To finish setting up the integration, select Add Integration.
Postman often checks your collection for changes. If Postman identifies changes when it checks your collection, the changes automatically commit to your repository in JSON format. Go to your repository to view your collections.
If your network is behind a firewall, you must allowlist a static IP address to enable collection backups to Enterprise Server on a custom domain.
Contact your IT team to allowlist the following static IP in your firewall:
3.212.102.200
Once you allowlist this IP address, the collection backup integration will be able to connect to your private network.
The Backup a collection (custom domain) integration requires the ability to reach the static IP address
3.212.102.200
from the network where your Enterprise Server instance is hosted. If your server instance is in a virtual private cloud (VPC), you may need to change the VPC's network access control list or rules.
If your integration has issues or your data isn't pushed to , make sure you've met the following requirements:
You added the integration in the same workspace as the content you want to push to the repository.
You selected the correct integration in Postman. For example, if you use Enterprise Server on a custom domain, make sure you selected the Backup a collection (custom domain) integration.
You initialized your repository with a README.md
file. When creating a new repository, you can select the Add a README file checkbox.
You selected the correct permissions when creating your personal access token:
repo
and user
scopes.Contents (Read and write)
and Metadata (Read-only)
.The branch you specified when setting up the integration already exists on . Postman won't create the branch if it doesn't already exist.
You have permissions to push to the branch.
If your instance of Enterprise Server is on-premises or self-hosted, check with your IT team for firewall requirements.
Edit the integration to make any required changes. If the integration still doesn't work after you edit it, delete the integration and add it again.
Last modified: 2024/07/26