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

# Delete Webhook

> Stop sending events to an endpoint

Remove a webhook endpoint. Penbox stops calling it at once, including the retries still
pending, and its delivery log is deleted.

To change the URL or rotate the secret, create a new endpoint, switch your receiver to
it, then delete the old one.


## OpenAPI

````yaml DELETE /webhooks/{id}
openapi: 3.0.0
info:
  title: Penbox API
  version: '1.0'
  description: >-
    The Penbox API provides programmatic access to Penbox's form management,
    case management, and document processing capabilities. Authenticate using
    Bearer tokens created at https://app.penbox.io/workspace/settings/api
servers:
  - url: https://connect.penbox.io/v1
    description: Production
security:
  - BearerAuth: []
paths:
  /webhooks/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: Webhook endpoint UUID
        schema:
          type: string
          format: uuid
    delete:
      summary: Delete Webhook
      description: >-
        Remove an endpoint. No event is sent to it afterwards, and its delivery
        log is deleted.
      operationId: delete-webhook
      responses:
        '204':
          description: Endpoint deleted
        '404':
          description: No such endpoint in your workspaces
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              status:
                type: string
              title:
                type: string
              detail:
                type: string
              source:
                type: object
                properties:
                  pointer:
                    type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: token
      description: >-
        API token (starts with pnbx_). Create at
        https://app.penbox.io/workspace/settings/api. Include as: Authorization:
        Bearer {token}

````

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