# Delete Webhook `DELETE https://api.getprospect.com/v2/webhooks/{id}` Unsubscribes; deliveries stop at once. Idempotent for the workspace's own webhooks. Free: no credits. ## Authentication Pass your API key in the `x-api-key` header. ## Path parameters - `id` (string, required): The webhook id (24 hex characters). ## Example request ```bash curl --request DELETE \ --url https://api.getprospect.com/v2/webhooks/{id} \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Response 200 Unsubscribed (or already was). ```json { "success": true, "data": null, "metadata": { "timestamp": "2026-10-08T12:00:00.000Z" } } ``` ## Response 400 Malformed webhook id (`VALIDATION_ERROR`, `payload.code: invalid_format`). ```json { "success": false, "data": null, "metadata": { "timestamp": "2026-10-08T12:00:00.000Z" }, "errors": [ { "name": "VALIDATION_ERROR", "message": "id must be a mongodb id", "payload": { "field": "id", "code": "invalid_format", "received_value": "123", "received_type": "string" } } ] } ``` ## Response 401 Missing, unknown or inactive credentials (`UNAUTHORIZED`). ## Response 404 No such webhook in this workspace, deleted or not (`NOT_FOUND`). ```json { "success": false, "data": null, "metadata": { "timestamp": "2026-10-08T12:00:00.000Z" }, "errors": [ { "name": "NOT_FOUND", "message": "Webhook not found." } ] } ``` ## Response 500 Unexpected server error.