Logo
30daysofpostman API Documentation

Create Webhook

POST https://api.getpostman.com/webhooks?workspace={{workspaceId}}

Creates a webhook that triggers a collection with a custom payload. You can get the webhook's URL from the webhookUrl property in the endpoint's response.

Include the following properties in a webhook object in the request body:

  • name — The webhook's name. On success, the system creates a new monitor with this name in the Monitors tab.
  • collection — The collection UID to trigger when calling this webhook.

 

Body PARAM

Key Datatype Required Description 
workspace
string Optional. A workspace ID in which to create the webhook. If you do not include this query parameter, the system creates the webhook in your "My Workspace" workspace.



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST 'https://api.getpostman.com/webhooks?workspace=0dd44d7e-99c5-47b9-b566-6cc6be9614b4?workspace=0dd44d7e-99c5-47b9-b566-6cc6be9614b4' -d '{"webhook":{"name":"echo webhook","collection":"20305249-df3063f6-4454-45bc-beaa-74a56fe6d1e3"}}'

ENDPOINTS