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

# Delete a webhook endpoint

`DELETE /v1/webhook_endpoints/{id}`

## Request

- Base URL: `https://api.tryleap.ai`
- URL: `https://api.tryleap.ai/v1/webhook_endpoints/{id}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Removes an endpoint. Its events stop going there.

Needs an API key with the `generations:write` scope.

## Path parameters

- `id` string, required: The endpoint's ID, `we_...`.

## Response `200`

The removed endpoint's ID.

- DeletedWebhookEndpoint
  - `id` string, required: The removed endpoint's ID.
  - `object` 'webhook_endpoint', required
  - `deleted` true, required

## Other responses

- `400`: `conflicting_credentials`
- `401`: `authentication_required`
- `403`: `permission_denied`
- `404`: `resource_not_found`
- `429`: `rate_limit_exceeded`

---

[API](https://skmtc.dev/tryleap/apis/leap-api.md) · [All operations](https://skmtc.dev/tryleap/apis/leap-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tryleap/apis/leap-api/revisions/c01f98d3e835?raw)
