Delete a webhook subscription
DELETE
/event-subscriptions/{id}
const url = 'https://app.surveyrock.com/api/v1/event-subscriptions/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://app.surveyrock.com/api/v1/event-subscriptions/example \ --header 'Authorization: Bearer <token>'Deletes the subscription with its delivery log. Deliveries still queued for it are dropped. Works on any plan.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”Idempotency-Key
string
1 to 128 characters, chosen by the caller
Responses
Section titled “Responses”Deleted
subscription_not_found