---
title: "Delete a webhook"
method: DELETE
path: "/webhook/{id}"
tags: ["Webhooks"]
---

# Delete a webhook

`DELETE /webhook/{id}`

Delete a webhook by its ID.

**400 is returned when the webhook still has active agent subscriptions:**
`"Cannot delete webhook: It is currently assigned to one or more agents. Please remove all agent assignments first."`
Call `DELETE /agent/{agentId}/webhook-subscriptions` for each assigned agent before deleting.

**400 is also returned for an invalid webhook ID format:**
`"The provided Webhook ID is invalid."`

## Path parameters

- `id` string, required

## Response `200`

Webhook deleted successfully

- object
  - `status` boolean
  - `data` string — Success message

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `404` — Webhook not found
- `500` — Internal server error

## Changes

- **2026-05-26** `0001c2ca9897` — 1 info
  - added the optional property `data` to the response with the `200` status

[Change history](https://skmtc.dev/smallest-inc/apis/agent-management-api/changes/webhook/:id/delete.md)

---

[API](https://skmtc.dev/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.dev/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/ee98cf1af6bc/schema)
