DELETE /v2/webhooks/subscriptions/{subscription_id}
Delete a webhook subscription: deliveries stop and it leaves the list.
How to use
Use the subscription ID returned by create/list. Deleting stops deliveries and removes it from active listing. To change a URL or replace a lost secret, create a replacement and retire the old subscription; no PATCH route is defined.
Authentication and permissions
Required permissions: org.webhooks.manage. Resource and owner access checks also apply.
Authorizations
AuthorizationstringRequired
Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.
Path parameters
subscription_idstringRequired
Responses
204
Successful Response
No content
422
Validation Error
application/json
delete/v2/webhooks/subscriptions/{subscription_id}
curlcurl --fail-with-body -sS -X DELETE \
"$STACKAI_BASE_URL/v2/webhooks/subscriptions/${SUBSCRIPTION_ID}" \
-H "Authorization: Bearer $STACKAI_API_KEY"No content
Last updated
Was this helpful?

