# Delete a webhook endpoint (/docs/api/webhook-endpoints/delete-webhook-endpoint)

## Delete a webhook endpoint

`DELETE https://runepay.co/api/v1/webhook_endpoints/{id}`

Soft-deletes the endpoint, hides it from reads and stops pending and future deliveries.

Scope: `webhook_endpoints:write`

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` (required) | path | string | The object id. |
| `Idempotency-Key` | header | string | Makes a retry safe: the same key and body within 24 hours does not repeat the request. |

Response `200`:

```json
{
  "id": "we_01KA9F6G8H0J2K4M6N8P0Q2R4S",
  "object": "webhook_endpoint",
  "deleted": true
}
```

Errors: 400, 401, 403, 404, 409, 413, 422, 500, 503, with the [error shape](/docs/api/errors).
