Unsubscription endpoint

Deactivating a REST Hook
URL
https://app.passcreator.com/api/hook/unsubscribe/
HTTP-Method
POST or DELETE
Purpose
Deletes an existing subscription.
Required input parameters
• subscription_url - the subscription URL of the subscription you want to delete.
• target_url - the target URL of the subscription you want to delete.
Returned values
On success HTTP status 200 is returned otherwhise a appropriate status code that represents the error. If status 200 is returned you won't receive notifications anymore.

Example payload

  1. {
  2. "subscription_url": "https://yourdomain.com/hooks/standard/your-individual-hook-id/",
  3. "target_url": "https://yourdomain.com/hooks/standard/your-individual-hook-id/"
  4. }