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

# Delete Webhook Endpoint

> Delete a webhook endpoint and its delivery log with DELETE /api/webhooks/{id}.

Deletes the endpoint. It receives no more events, and its delivery log is deleted with it. To pause an endpoint instead, use [Update Webhook Endpoint](https://octanist.com/docs/api-reference/endpoint/update-webhook.md) with `"enabled": false`.

Needs an API key with full access.

## Example Request

```bash theme={null}
curl -X DELETE \
  -H "X-API-KEY: your_api_key" \
  "https://octanist.com/api/webhooks/9b2f1c4e-6a1d-4f7e-9a51-2c8f0f3d1a77"
```

## Example Response

```json theme={null}
{
  "success": true,
  "data": {
    "id": "9b2f1c4e-6a1d-4f7e-9a51-2c8f0f3d1a77",
    "deleted": true
  },
  "meta": {
    "requestId": "req_a1b2c3d4e5f6",
    "timestamp": "2026-11-30T12:00:00.000Z"
  }
}
```


## OpenAPI

````yaml DELETE /api/webhooks/{id}
openapi: 3.0.1
info:
  title: Octanist API
  description: >-
    The Octanist API allows you to create, update and read leads, run reports,
    read workspace settings, retrieve statistics, and access ad spend data.
  version: 2.5.0
  contact:
    name: Octanist Support
    url: https://octanist.com/docs
servers:
  - url: https://octanist.com
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /api/webhooks/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: Webhook endpoint ID
        schema:
          type: string
    delete:
      tags:
        - Webhooks
      summary: Delete Webhook Endpoint
      description: Delete the endpoint and its delivery log.
      responses:
        '200':
          description: Endpoint deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      deleted:
                        type: boolean
                        example: true
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: A read-only API key, or the organization is a read-only demo
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Endpoint not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    Meta:
      type: object
      properties:
        requestId:
          type: string
          example: req_a1b2c3d4e5f6
        timestamp:
          type: string
          format: date-time
          example: '2026-03-10T12:00:00.000Z'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code
              example: VALIDATION_ERROR
            message:
              type: string
              description: Human readable error message
              example: Human readable error message
            details:
              type: object
              description: Optional additional error details
        meta:
          $ref: '#/components/schemas/Meta'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key for authentication

````

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