GitHub

  • Pro

Back up and synchronize your Postman Collections on GitHub, the largest host of source code in the world. Your Collections are all tucked in safe and sound with our latest Postman Pro to GitHub Integration.

Setting up a GitHub integration requires you to get a GitHub Personal Access Token and configure how you would like to back up your collections.

Generating a GitHub Personal Access Token

Log in to GitHub.

If you don’t already have a Personal Access Token from GitHub, generate a new one.

We need the repo and the user scope in order to successfully configure the integration.

repo scope user scope

Once that token is generated, copy it and save it somewhere for future use. generated token

Configuring GitHub Integration

  1. In the Integrations page, find Github from a list of Postman’s 3rd party Integrations for Postman Pro users.

github integration

  1. Click the View Details button to see information about Github and how it can back up your Postman Collections to your designated repositories.

You also can click the Configured Integrations tab to set up other integrations, view available integrations for Github, or view all integrations.

select github integration

  1. Click the Add Integration button to authorize a backup of your Postman collections.
  1. Enter your GitHub Personal Access Token and click the Proceed button.

access token

  1. Once the token is verified, you will be shown the configuration page to configure the integration.

configure

  • Select a collection to back up.
  • Select the repository.
  • Enter the directory where the collection will be pushed. If the directory does not exist, it will be created for you. If you do not specify anything, the default directory will be Postman Collections.
  • Enter the file name of the collection in the repository.
  • Enter the branch where the collection will be pushed. This branch should already exist in your repository. If you do not specify anything, it will be pushed to the default branch of the repository.
  1. Click the Add Integration button.

Every change saved to your Postman Collection automatically commits changes to your GitHub repo in real time. Your Collections and code can live together in perfect harmony in the same repository.