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

# Delete Webhook

> Delete a webhook subscription.

Delete a webhook subscription. The response is the updated list of the remaining webhooks for your organization.

## Authentication

Webhooks are an org-level resource, so this endpoint uses API-key auth.

<ParamField header="x-api-key" type="string" required>
  Your Refold API key. Find it in **Settings → Credentials**.
</ParamField>

## Path Parameters

<ParamField path="id" type="string" required>
  The webhook ID to delete.
</ParamField>

## Response

<Tabs>
  <Tab title="200 OK">
    Returns the array of remaining webhooks after deletion.
  </Tab>

  <Tab title="400 Not Found">
    <ResponseField name="status_code" type="integer">HTTP status code.</ResponseField>
    <ResponseField name="http_error_type" type="string">Error category.</ResponseField>
    <ResponseField name="error" type="string">Internal error code, e.g. `RESOURCE_NOT_FOUND`.</ResponseField>
    <ResponseField name="message" type="string">Human-readable error description.</ResponseField>
  </Tab>
</Tabs>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "_id": "69c4c8ece6c48f40c1d3ff42",
      "org_id": "6500a1b2c3d4e5f6a7b8c9d0",
      "environment": "test",
      "is_enabled": false,
      "webhook_events": ["Connection Created", "Workflow Completed"],
      "webhook_url": "https://your-app.com/webhooks",
      "webhook_type": "default",
      "method": "POST"
    }
  ]
  ```

  ```json 400 theme={null}
  {
    "status_code": 400,
    "http_error_type": "BAD_REQUEST",
    "error": "RESOURCE_NOT_FOUND",
    "message": "Webhook not found"
  }
  ```
</ResponseExample>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://app.refold.ai/api/v2/public/webhook/{id}" \
    -H "x-api-key: YOUR_API_KEY"
  ```
</RequestExample>
