Delete a webhook subscription

POST /webhook/deleteSubscription
application/json

Body Required

  • webhookId string Required

    The ID of the webhook subscription to delete

Responses

  • 200 application/json

    Webhook subscription deleted successfully

    Hide response attributes Show response attributes object
    • data object Required
      Hide data attribute Show data attribute object
      • message string Required
    • warnings array[string]
  • 400 application/json

    Invalid request. The request was malformed or missing required parameters.

    Hide response attribute Show response attribute object
    • message string Required
POST /webhook/deleteSubscription
curl \
 --request POST 'https://public-api.joinswsh.com/webhook/deleteSubscription' \
 --header "x-api-key: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"webhookId":"33333333-3333-3333-3333-333333333333"}'
Request examples
{
  "webhookId": "33333333-3333-3333-3333-333333333333"
}
Response examples (200)
{
  "data": {
    "message": "Success!"
  },
  "warnings": [
    "Example warning"
  ]
}
Response examples (400)
{
  "message": "Invalid request"
}