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

# Delete a webhook

> Stops the deliveries and deletes the webhook with its delivery history.

A webhook an owner paused by hand cannot be deleted with the key: the answer is 409, "An owner paused this webhook. Ask them to resume or delete it in miniDesk.", and the webhook stays. A key can neither resume nor delete it, so an owner's pause cannot be undone by deleting and registering again.

An API key only sees the webhooks it registered. A webhook added in the dashboard or by another key is not listed, and its id answers 404.



## OpenAPI

````yaml /api-reference/openapi.json delete /webhooks/{id}
openapi: 3.1.0
info:
  title: miniDesk API
  version: 1.0.0
  description: >-
    Create and work support tickets from your own systems. Every response
    carries an `X-Request-Id`; quote it when reporting a problem.
servers:
  - url: https://api.minidesk.ai/v1
security:
  - bearerAuth: []
paths:
  /webhooks/{id}:
    delete:
      tags:
        - Webhooks
      summary: Delete a webhook
      description: >-
        Stops the deliveries and deletes the webhook with its delivery history.


        A webhook an owner paused by hand cannot be deleted with the key: the
        answer is 409, "An owner paused this webhook. Ask them to resume or
        delete it in miniDesk.", and the webhook stays. A key can neither resume
        nor delete it, so an owner's pause cannot be undone by deleting and
        registering again.


        An API key only sees the webhooks it registered. A webhook added in the
        dashboard or by another key is not listed, and its id answers 404.
      operationId: deleteWebhook
      parameters:
        - name: id
          in: path
          required: true
          description: The webhook's id, as returned when you registered it.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The webhook was deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Deleted'
        '401':
          description: Missing, malformed, or revoked credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Unknown id, or a resource belonging to another workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflicts with existing data. `field` names the offending property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Over the rate limit. See the `Retry-After` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Deleted:
      type: object
      properties:
        deleted:
          type: boolean
          const: true
      required:
        - deleted
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - validation_failed
                - invalid_credential
                - identity_required
                - identity_invalid
                - forbidden
                - email_unconfirmed
                - seat_unavailable
                - not_found
                - no_account
                - conflict
                - quota_exceeded
                - invalid_transition
                - ai_disabled
                - app_outdated
                - rate_limited
                - internal_error
                - service_unavailable
            message:
              type: string
            field:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API credential from **Settings → API**, sent as `Authorization:
        Bearer mdsk_api_...`. Issued per workspace and shown once.

````

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