Creating and Using the Run in Postman Button
Tags: api, postman, programming, discuss
Published: 2022-07-21 13:57:43

---
title: Creating and Using the Run in Postman Button
published: true
description: Your favourite API tool has a feature called Run in Postman button. It helps others to experiment with your API.
tags: api, postman, programming, discussion
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wgfqhnc0yxr1hah5n6ra.png
---

>Hey, what's that Run in Postman button?

Hey there, great that you ask. The [Run in Postman button](https://learning.postman.com/docs/publishing-your-api/run-in-postman/introduction-run-button/) is a way to help others get started with your API. It's an embed-code you can use in HTML or Markdown, that shows an orange button in your document, saying "Run in Postman". Once you select it, it forks the original Collection to your Workspace. It can also include an Environment, so everything someone needs to start playing around with your API is included.

>Wait, I understood "embed-code", and I know HTML and Markdown, but what's a collection and workbench, you said?

Workspace. You can compare a Workspace to a physical "workshop" for crafting things. A Workspace keeps all the stuff you need to get an API job done: your tools ([Environments](https://learning.postman.com/docs/sending-requests/managing-environments/)), blueprints ([APIs](https://learning.postman.com/docs/designing-and-developing-your-api/the-api-workflow/)), material ([requests](https://learning.postman.com/docs/sending-requests/requests/)), instructions ([documentation](https://learning.postman.com/docs/publishing-your-api/documenting-your-api/)) and also experimental setups ([Mock Servers](https://learning.postman.com/docs/designing-and-developing-your-api/mocking-data/setting-up-mock/)) are included. All that's already pretty advanced, but you'll get there!

>Maybe not today, right? What about single requests?

A Collection is comparable with a workbench. It's located in your workshop a.k.a Workspace and you can align all your requests in there the way you need them to be. You can have several Collections in your Workspace, just like you would have multiple workbenches in a workshop.
Now with a Run in Postman button, you let someone else make a fork (not really a copy, let me explain that in a minute) from one of your Collections, so they basically make a snapshot of one of your workbenches (Collection) and have an exact reproduction of that in their own Workspace. You can also tell them which tools (Environment) would be best to use for that project.

>Can you show me that Postman button, now?

Sure, here you go: [![Run in Postman](https://run.pstmn.io/button.svg)](https://god.gw.postman.com/run-collection/12959542-c8142d51-e97c-46b6-bd77-52bb66712c9a?action=collection%2Ffork&collection-url=entityId%3D12959542-c8142d51-e97c-46b6-bd77-52bb66712c9a%26entityType%3Dcollection%26workspaceId%3D405e0480-49cf-463b-8052-6c0d05a8e8f3)

>Hmm, ok. That's it?

The beauty is not in the button. It's just an SVG. You could make it look whatever you want. The beauty is in the functionality. You create it from any Collection you want to promote, including an Environment or not, and Postman takes care of all the backend stuff. You'll be able to embed this Markdown or HTML code in your documentation, your GitHub README.md, your webpage or wherever, and get to know how many people forked your Collection, and how they use your API. They get access to the documentation you included with your collection. All this helps you make the experience of using your API a delight - not a challenge. 

>Can you show me how to create such a button? Is it automated?

You bet it is. You head over to the Collection you want to share, select the three dot menu from a collection (not a request!) and select "Share".

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bxgs2lmz3jd91mnvb9fd.png)

An overlay lets you define how you want to share. Select "Via Run in Postman", make it HTML or Markdown, select an Environment to include if necessary, and then copy the code to your clipboard and paste it wherever you want. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q0agl3ubwxcfj5onv5np.png)

Important to notice, you can only create RIP buttons, that's how we call Run in Postman buttons internally, from your own collections. Any more questions?
 
_Continue this discussion with your own questions in the comments now._