The Run in Postman button opens a collection of API endpoints directly in the user’s Postman app. You can embed the button in your documentation to link a collection of endpoints and workflows that help developers onboard onto your API faster.
To create a button that links to a collection, go through the following steps.
Sign into your Postman app. If you have not yet created an account with us, this is your cue to do so.
If you do not have it already, create the collection of requests you would like to link to in your documentation. You can learn how to create a collection here.
We recommend creating collections for a group of endpoints. It’s also preferable to create example workflows; they help in getting you up and running with Postman faster.
Keep in mind, Run in Postman works well with Swagger and RAML too. Just convert your file to a Collection by importing it in Postman.
Click on the collection you would like to embed and hit Share.
Shift to the Embed Button tab, and click ‘Generate Code’. Note: This will upload the collection to our servers.
Pick whether you would like a CSS button or a markdown button:
The CSS option works well if you want to add the button to your own website, and can edit the source code.
The markdown option works if you need to add the button to a markdown document, like a README.md file in your Github or Bitbucket repository.
Here’s an example markdown snippet
[![Run in Postman](https://run.pstmn.io/button.svg)](https://www.getpostman.com/run-collection/:collection_id)
Converted to HTML
<a href="https://www.getpostman.com/run-collection/:collection_id" target="_blank"><img src="https://run.pstmn.io/button.svg" alt="Run in Postman"></a>
:collection_id is a placeholder here and will be auto-filled in the markdown snippet.
Important - Once you generate the embed code for a particular collection, the button will point to the collection at that point in time. To update the collection users see when they use the Run button, you’ll need to update the collection link
(Collection menu > Share > Embed Button > Update).