You can publish a Flow to the cloud so it can be triggered with a webhook. This enables your Flow to be run automatically in the cloud.
Webhooks are a way for one system to tell another system that some information has changed. It works similarly to push notifications on a phone. Instead of constantly checking your email app to see if there's any new mail, the email app sends a notification to you that a new email has been received. Many services today with APIs also offer webhooks as a way to communicate between their system and yours.
When a Flow is published to the cloud, the Flow will run each time it receives a webhook event from another service. This is useful because the Flow can be run automatically and doesn't need your computer to be on, since these Flows run on Postman's cloud.
In the sidebar, under Applications, select Webhook to generate a webhook and upload your local Flow to Postman's cloud.
You can use the generated webhook in a request to trigger your published Flow. The Webhook section in the sidebar counts how many requests your Flow's webhook has received. Select the number of requests to see more details about them.
Select Preview to test the webhook locally. You can add a request body to simulate incoming webhook data.
Select Publish to re-upload your Flow to Postman's cloud after making changes to your Flow.
Select the more actions icon to configure the webhook, view the published version of your Flow, or unpublish the Flow. You can configure what incoming data your webhook receives (Only Body or Full Request), and if the server will respond with the default response or with an empty body.
Important
Every time you publish a Flow, Postman saves your collections and environments. If you make any changes to these, you will need to republish.
To see a published Flow's live logs, select the more actions icon > View published version > View Live Logs.
Often when working with webhooks, a third-party service sends data to your published Flow's webhook. You can give the webhook URL under Webhook in the sidebar to the other service so they can send data to it. Once that's set up, you can view the live logs and see what the requests from the other service looks like to use as your test data. Flows can also be manually run by making a request to the Webhook URL.
Last modified: 2024/06/05