---
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

---

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