Skip to content

Deletes a webhook

DELETE
/webhook/{name}
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.

name
required
string
/^[a-z0-9-]{1,64}$/

Webhook deleted

Media typeapplication/json
object
code
required
Allowed values: ok
Example
{
"code": "ok"
}

Invalid webhook name

Media typeapplication/json
object
code
required
Allowed values: invalid name
message
Array<string>
Example
{
"code": "invalid name"
}

Unauthorized

Media typeapplication/json
object
code
required
Allowed values: unauthorized
Example
{
"code": "unauthorized"
}

User doesn't belong to the organization

Media typeapplication/json
Any of:
object
code
required
Allowed values: no organization
Example
{
"code": "no organization"
}

Webhook not found

Media typeapplication/json
object
code
required
Allowed values: not found
Example
{
"code": "not found"
}