Subscribe to webhooks

Steps to subscribe a webhook

  1. Use the subscribe webhook endpoint to subscribe to webhooks. Link to the endpoint here.
    1. In the request body, provide the topic name and the URL where the webhook will be received.
  2. Include the API token in the request to authorize the use of this endpoint.
  3. Send the request to the endpoint to complete the subscription.
  4. To view a list of subscribed webhooks, use the List webhook endpoint for a specific subscription. Link to the endpoint here.

Steps to unsubscribe a webhook

  1. Use the List webhook endpoint to retrieve the list of subscribed webhooks . Link to the endpoint here.
  2. In the response payload, copy the ID of the webhook you wish to unsubscribe from.
  3. To unsubscribe from a specific webhook, use the Unsubscribe webhook endpoint. Link to the endpoint here.
    1. Pass the webhook ID obtained in Step 2 as a path parameter.