---
docId: doc_c38f07227fe74d54a2e6064c6e6ee5b3
title: Delete a webhook
description: "Permanently delete a webhook without deleting its secrets."
api:
  group: webhooks
  auth: bearer
  operations:
    - operationId: deleteWebhook
      method: DELETE
      path: '/v1/webhooks/{webhookId}'
      postmanName: Delete a webhook
---

<script>
  import { Note, Ways } from '$lib/components';
</script>

# Delete a webhook

Permanently delete the webhook and stop its notifications immediately. Its secrets remain in the workspace.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl -X DELETE https://api.platic.ai/v1/webhooks/$WEBHOOK_ID \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.webhooks.delete("webhook_123");
```

</Ways.Way>
</Ways>

If your credential covers several workspaces, add `?workspace=<id>` with the webhook's workspace ([list workspaces](/api-reference/workspaces)); without it the answer is `400`.

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `webhookId` | string | Webhook id | ✓ |

## Response

```json
{
  "status": "success",
  "message": "Webhook deleted successfully",
  "data": {
    "id": "webhook_abc123",
    "deleted": true,
    "workspaceId": "ws_123"
  }
}
```

## Response fields

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Id of the deleted webhook |
| `deleted` | boolean | Always `true` |
| `workspaceId` | string | Workspace it belonged to |

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `400` | `INVALID_REQUEST` | Your credential covers several workspaces and you did not send `?workspace=`, or you sent one it does not cover. `details.available` carries the IDs you can use |
| `401` | `UNAUTHENTICATED` | The credential is missing or invalid |
| `403` | `FORBIDDEN` | An OAuth token without the `platica:write` scope, the person does not have the Integrations module (the message is `Missing integrations permission`), or does not have permission to configure webhooks |
| `404` | `NOT_FOUND` | The webhook does not exist in the workspace |
| `409` | `RESOURCE_CHANGED` | The webhook changed while it was being deleted. Read it and repeat |
| `409` | `REQUEST_ID_CONFLICT` | You repeated an `Idempotency-Key` with a different body. Use a new key for a new operation |

```json
{
  "code": 404,
  "error": "Not Found - The resource doesn't exist",
  "details": {
    "code": "NOT_FOUND",
    "message": "Integración no encontrada."
  }
}
```

The general error format is in [Errors](/api-reference/errors).

<Note type="warning">

To pause deliveries, use `{ "active": false }` in [update a webhook](/api-reference/webhooks/update).

</Note>
