Logo
30 days of Postman - for developers API Documentation

Create Webhook

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

Create a webhook that triggers a collection with your custom payload.

You can specify the webhook name and the collection to trigger by using the following attributes of the webhook object on your JSON body:

  • name: the name of the webhook that you're creating.
  • collection: the UID of the collection that you want to trigger once this webhook is called.

Once created, the webhook URL can be retrieved by accessing the webhookUrl attribute of the webhook object on the response JSON payload.

 

Body PARAM

Key Datatype Required Description 
workspace
string



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST 'https://api.getpostman.com/webhooks?workspace=undefined?workspace=undefined' -d '{"webhook":{"name":"undefined","collection":"undefined"}}'

ENDPOINTS