Delete a webhook

Overview

Stop a subscription and free its slot.

Use this when you no longer want events, or before creating a replacement of the same type.

You'll need the subscription id.

Deliveries stop immediately, including any queued retries. The subscription no longer appears in List your webhooks.

Prerequisites

Base URL

EnvironmentURL
Productionhttps://production-api.shoutaboutus.com
Developmenthttps://development-api.shoutaboutus.com

Endpoint

DELETE /api/v1/partner/webhooks/{webhookSubscriptionId}

Authentication

Partner token

  • Only partner users can call it; other tokens get 403.
  • Only your own partner's subscriptions: any other id, including another partner's, gets 404.

Rate limit

This endpoint has no rate limit.

Request parameters

ParameterInTypeRequiredDescription
webhookSubscriptionIdpathintegerYesThe subscription's id, from List your webhooks.

Request body

None.

Request payload

None.

Response body

The payload is inside data.

FieldTypeDescription
dataobjectThe result.
data.subscription_idintegerThe deleted subscription's id.
data.statusstringdeleted.

Response payload

{
  "data": {
    "data": {
      "subscription_id": 3,
      "status": "deleted"
    }
  }
}

Examples

Success payload

See Response payload.

Error payload

403 Not a Partner token

{
  "message": "Only partner-admin users can manage webhook subscriptions.",
  "status": "error",
  "errors": []
}

404 Subscription not found

{
  "message": "Subscription not found.",
  "status": "error",
  "errors": []
}
StatusMeaning
200The subscription was deleted.
401The token is missing, expired or invalid.
403The token isn't a Partner token.
404No subscription with this id belongs to your partner.
500Unexpected server error.

Example request

curl --request DELETE \
  --url "https://production-api.shoutaboutus.com/api/v1/partner/webhooks/3" \
  --header 'Authorization: Bearer <bearer-token>' \
  --header 'Accept: application/json'

Did this page help you?