> ## Documentation Index
> Fetch the complete documentation index at: https://wordsmithai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete webhook endpoint

> Delete a webhook endpoint and stop its pending retries.

Deletes the endpoint and its secret. Deliveries still waiting for a retry are marked failed. Its events stay in the [event log](https://wordsmithai.mintlify.site/api-reference/events/list-events.md).

## Authentication

Requires an API key, or an OAuth token with `webhooks:write`.

## Path parameters

**webhook\_endpoint\_id** `string` *required*

The endpoint.

## Response

Returns `204 No Content` with no body.

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X DELETE "https://api.wordsmith.ai/api/v1/webhook_endpoints/0e7b3c5a-9d21-4f86-b4a0-6c8e2f1d7a39" \
  -H "Authorization: Bearer sk-ws-api1-your_api_key_here"
```

```text 204 theme={"theme":{"light":"github-light","dark":"github-dark"}}
No body.
```

## Errors

| Status | `error_code` | When |
| - | - | - |
| 404 | `resource_not_found` | No endpoint with this id that you can manage, or webhooks are not on for your organisation. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.