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

# Delete webhook

> PERMANENTLY deletes a webhook (irreversible): the subscription and its delivery logs are removed and the endpoint simply stops receiving events. To pause without losing the webhook, prefer PATCH with active=false. 404 if not visible to the calling key (same number scope as the list).



## OpenAPI

````yaml openapi.json DELETE /v1/webhooks/{id}
openapi: 3.1.0
info:
  title: Pilot Status API
  version: 1.0.0
  license:
    name: Pilot Status Terms of Service
    url: https://pilotstatus.com.br/terms
  description: >-
    Public REST API for Pilot Status. Authenticate with the `x-api-key: ps_...`
    header (or `x-api-key-id`). Base URL: https://pilotstatus.com.br
servers:
  - url: https://pilotstatus.com.br
security:
  - apiKey: []
  - apiKeyId: []
paths:
  /v1/webhooks/{id}:
    delete:
      tags:
        - Webhooks
      summary: Delete webhook
      description: >-
        PERMANENTLY deletes a webhook (irreversible): the subscription and its
        delivery logs are removed and the endpoint simply stops receiving
        events. To pause without losing the webhook, prefer PATCH with
        active=false. 404 if not visible to the calling key (same number scope
        as the list).
      operationId: delete_webhooks_id
      parameters:
        - name: id
          in: path
          required: true
          description: Webhook id.
          schema:
            type: string
          example: wh_01HZX...
        - name: x-whatsapp-number-id
          in: header
          required: false
          description: Scopes to a single number (required for per-number OAuth grants).
          schema:
            type: string
          example: num_01HZX...
      responses:
        '200':
          description: Delete webhook
          content:
            application/json:
              example:
                ok: true
                id: wh_01HZX...
        '400':
          description: Invalid payload or parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Validation error
        '401':
          description: Missing or invalid `x-api-key` / `x-api-key-id` header
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Unauthorized
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Too many requests
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your ps_ API key
    apiKeyId:
      type: apiKey
      in: header
      name: x-api-key-id
      description: API key id (alternative to x-api-key)

````