Logo
30 days of Postman - for developers API Documentation

Day 29: Webhooks

Number of APIs: 4


1. Webhooks - echo

POST https://postman-echo.com/post



2. Webhooks - 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.



3. Webhooks - Trigger Webhook

POST https://newman-api.getpostman.com/run/16404714/2ce4d3a9-80bc-4bf3-9b1b-845703539e0e



4. Submit your solution - submit

GET https://api.getpostman.com/collections/{{collection_uid}}

It's time to submit your solution.

  1. Use a Qodex environment: Find the Qodex API env environment from the previous challenge. Update the collection_uid with the current collection's ID.
  2. Validate your solution: Save your changes in the collection and environment. Hit Send and look under the Tests tab of the server response at the bottom to review your test results.

If you have any failures, review the failed test results or ask for support in the [community forum] When all of your tests pass, you are done with today's challenge. Remember to save your changes as you'll need to pass all the challenges to claim a 30 days of Qodex badge.



ENDPOINTS