Skip to main content
DELETE
/
organizations
/
{organizationId}
/
webhooks
/
{id}
Delete webhook
curl --request DELETE \
  --url http://sandbox.mintlify.com/organizations/{organizationId}/webhooks/{id} \
  --header 'Authorization: Bearer <token>'
Deletes a webhook endpoint. This action is PERMANENT. The webhook will stop receiving events immediately.

Authentication

This endpoint requires authentication via Bearer token:
  • Authorization: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
organizationIdstring (UUID)YesOrganization ID
idstring (UUID)YesWebhook ID

Permissions

Only OWNERS and ADMINS can delete webhooks.

What Happens

When a webhook is deleted:
  • Webhook is permanently removed
  • No more events will be sent to this URL
  • The webhook will stop receiving events immediately
  • This action cannot be undone

Example Request

curl -X DELETE http://localhost:3001/api/organizations/550e8400-e29b-41d4-a716-446655440000/webhooks/123e4567-e89b-12d3-a456-426614174000 \
  -H "Authorization: Bearer <your_token>"

Example Response

Status: 204 No Content
A successful deletion returns no response body, only a 204 status code.

Common Errors

401 Unauthorized

Authentication required.
{
  "statusCode": 401,
  "message": "Authentication required. Provide a valid bearer token."
}

403 Forbidden

Only owners and admins can delete webhooks.
{
  "statusCode": 403,
  "message": "Access denied. Only owners and admins can delete webhooks."
}

404 Not Found

Webhook not found.
{
  "statusCode": 404,
  "message": "Webhook not found with the provided ID."
}

Best Practices

Before deleting a webhook:
  1. Disable it first - Set isActive: false to test without deleting
  2. Check delivery history - Review recent deliveries
  3. Notify your team - Coordinate with developers using this webhook
  4. Document the change - Keep track of why it was removed

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required
id
string
required

Response

Webhook deleted successfully. Webhook will no longer receive events.