You can use Postman's APIMatic integration to back up your Postman collections in Swagger, RAML, API Blueprint, and other API description formats.
This integration allows APIMatic to convert your Postman collections into any major API description format, and save the resulting file into your designated GitHub repository.
If you don't already have a GitHub account, you'll need to create one.
In the web dashboard, navigate to your workspace, choose Integrations > Browse Integrations, and select APIMatic from the list of third party integrations.
Click View Details for more information on how the Postman to APIMatic integration converts, formats, and saves your collections to GitHub.
You can alternatively click Configured Integrations to access any existing integrations.
Click the Add Integration button to authorize a periodic backup of your collection to your GitHub repository.
Click Authorize to allow the backup to GitHub.
If you are not signed in to GitHub, you will be prompted to log in.
To back up a collection periodically to a GitHub repository:
- Enter your API key from APIMatic.
- Select a collection.
- Select a repository.
- Specify a directory in the repository where you want to add the collection.
- Enter a filename for the directory in the repository.
- Select the format in which you want to save the collection, such as Postman 2.0 or APIMatic format.
- Specify the branch where you want to add the collection. Note that the branch you want to back up your collection to must already exist.
Click Add Integration.
APIMatic converts your collection to the format of your choice and pushes it to your GitHub repository. This integration runs once a day at 1200UTC. Any changes you make to your collection will be picked up by the converter in its subsequent run. If no updates have been made to your collection, no updates will be pushed to GitHub.