Deletes a webhook
DELETE
/webhook/{name}
const url = 'https://web.exactly.app/api/webhook/example';const options = { method: 'DELETE', headers: { cookie: '__Secure-better-auth.session_token=<__Secure-better-auth.session_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://web.exactly.app/api/webhook/example \ --cookie __Secure-better-auth.session_token=<__Secure-better-auth.session_token>Deletes a webhook by name. When the deleted webhook is the last one in the organization's source, the source row is removed entirely; otherwise the remaining webhooks are kept. Returns 404 when the organization has no source configured or no webhook with that name exists. Only owner and admin roles can delete a webhook.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”name
required
string
Responses
Section titled “Responses”Webhook deleted
Media typeapplication/json
object
code
required
Example
{ "code": "ok"}Invalid webhook name
Media typeapplication/json
object
code
required
message
Array<string>
Example
{ "code": "invalid name"}Unauthorized
Media typeapplication/json
object
code
required
Example
{ "code": "unauthorized"}User doesn't belong to the organization
Webhook not found
Media typeapplication/json
object
code
required
Example
{ "code": "not found"}