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

# Delete Webhook

> Delete a webhook endpoint.

Destructive
Deletes a webhook subscription so new deliveries stop being sent to the registered URL. The response returns the deleted `id` in `data.id`. The secret is not recoverable. If you create another subscription later, store its secret and update your verification configuration.

## When to use this

Webhook deletion is destructive. Reach for it only when you want to permanently retire a subscription, for example:

* A consumer service is being decommissioned.
* The URL was registered against a development environment that no longer exists.
* A previous integration leaked the signing secret and the cleanest mitigation is to delete the subscription, rotate any external dependencies on it, and re-register with a new secret.

If you only want to stop receiving events temporarily, use [Update Webhook](https://dialnexa.com/docs/api-reference/v1/webhooks/update.md) and set `is_active` to `false`. Disabled webhooks keep their secret and event subscriptions, so you can re-enable delivery later without coordinating a redeploy.

## Verify deletion

List webhooks and confirm the deleted ID is no longer returned. If the delete request times out, check the list before repeating it. Deliveries are not queued or retried, so a delivery that was already being sent when you deleted the subscription can still arrive; keep the receiver safe to run during the transition.

## Path parameters

| Parameter | Description |
| - | - |
| `id` | The webhook ID, for example `webhook_c9v3nz8rq4pmxa`. |

## Errors

* `404 Not Found` is returned when the webhook does not exist in this workspace or has already been deleted. A webhook that belongs to another workspace is reported the same way.
* `401 Unauthorized` is returned when the API key is missing or invalid.

## Related endpoints

* [Update Webhook](https://dialnexa.com/docs/api-reference/v1/webhooks/update.md): pause delivery without deleting the subscription.
* [List Webhooks](https://dialnexa.com/docs/api-reference/v1/webhooks/list.md): confirm the webhook is gone after deletion.
* [Verifying the signature](https://dialnexa.com/docs/api-reference/v1/webhooks/create.md#verifying-the-signature): how the secret signs each delivery.


## OpenAPI

````yaml DELETE /v1/user-webhooks/{id}
openapi: 3.0.0
info:
  title: DialNexa API
  description: Public `/v1` REST API for the DialNexa voice AI platform.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: Agents
  - name: Batch Calls
  - name: Calls
  - name: Knowledge Base
  - name: Languages
  - name: LLMs
  - name: Phone Numbers
  - name: Organization Folders
  - name: Transcribers
  - name: Webhooks
  - name: Voices
  - name: Workflows
  - name: Workflow Leads
  - name: Authentication
  - name: Agent Builder
  - name: Agent Evaluations
paths:
  /v1/user-webhooks/{id}:
    delete:
      tags:
        - Webhooks
      summary: Delete Webhook
      description: Deletes a webhook so new events stop being delivered.
      operationId: deleteWebhook
      parameters:
        - name: id
          required: true
          in: path
          description: >-
            Webhook ID with the `webhook_` prefix, as returned by Create
            Webhook.
          schema:
            example: webhook_c9v3nz8rq4pmxa
            type: string
      responses:
        '200':
          description: Webhook deleted successfully.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                  - statusCode
                  - message
                  - data
                  - timestamp
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  error:
                    type: boolean
                    enum:
                      - false
                  statusCode:
                    type: integer
                    example: 200
                  message:
                    type: string
                    example: Success
                  data:
                    type: object
                    properties:
                      message:
                        type: string
                        example: Webhook deleted successfully
                      id:
                        example: webhook_c9v3nz8rq4pmxa
                        type: string
                  timestamp:
                    type: string
                    format: date-time
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
                    error: false
                    statusCode: 200
                    message: Success
                    data:
                      message: Webhook deleted successfully
                      id: webhook_c9v3nz8rq4pmxa
                    timestamp: '2026-09-07T06:00:00.000Z'
        '401':
          description: Unauthorized - missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 401 Unauthorized
                  value:
                    statusCode: 401
                    error: true
                    success: false
                    data: []
                    message: Invalid API key
                    errors: []
        '404':
          description: Webhook not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 404 Not Found
                  value:
                    statusCode: 404
                    error: true
                    success: false
                    data: []
                    message: Webhook not found for the given ID and organization
                    errors: []
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 500 Internal Server Error
                  value:
                    statusCode: 500
                    error: true
                    success: false
                    data: []
                    message: Internal server error
                    errors: []
      security:
        - bearer: []
components:
  schemas:
    ErrorResponse:
      type: object
      description: Error body on endpoints without response filtering.
      properties:
        statusCode:
          type: integer
          example: 404
        error:
          type: boolean
          enum:
            - true
        success:
          type: boolean
          enum:
            - false
        data:
          oneOf:
            - type: object
              properties:
                code:
                  type: string
                  description: Machine-readable refusal code.
            - type: array
              items: {}
          description: >-
            For a coded refusal, an object with code and the details listed for
            that code. Otherwise an empty array.
        message:
          type: string
        errors:
          type: array
          items:
            type: string
          description: Validation messages for a 400. Empty for other errors.
        validation_errors:
          type: array
          description: >-
            Present when uploaded rows fail number validation (batch and
            workflow lead uploads): one group per distinct error.
          items:
            type: object
            properties:
              error:
                type: string
              rows:
                type: array
                items:
                  type: integer
                description: Row numbers with this error.
              phone_numbers:
                type: array
                items:
                  type: string
        invalid_row_count:
          type: integer
          description: 'Present with validation_errors: how many rows failed.'
      required:
        - statusCode
        - error
        - success
        - data
        - message
        - errors
  securitySchemes:
    bearer:
      scheme: bearer
      type: http

````

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