# Delete a Webhook

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/webhook_endpoints/{id}:
    delete:
      summary: Delete a Webhook
      deprecated: false
      description: ''
      tags:
        - API Reference/Webhooks
      parameters:
        - name: id
          in: path
          description: ''
          required: true
          schema:
            type: string
        - name: Accept
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                x-apifox-overrides: {}
                type: object
                x-apifox-refs:
                  01GHRKRJZ9ACNXS78ZQJVE63T4:
                    $ref: '#/components/schemas/Webhook'
                    x-apifox-overrides:
                      api_version: null
                      created: null
                      description: null
                      enabled_events: null
                      livemode: null
                      metadata: null
                      status: null
                      secret: null
                      url: null
                x-apifox-orders:
                  - 01GHRKRJZ9ACNXS78ZQJVE63T4
                  - deleted
                properties:
                  id:
                    type: string
                    description: Unique identifier for the object, like "we_xxxxx"
                  object:
                    type: string
                    title: ''
                    default: '"webhook_endpoint"'
                    description: '**"webhook_endpoint"** '
                  deleted:
                    type: boolean
                x-apifox-ignore-properties:
                  - id
                  - object
              example:
                id: we_xxxxxxxxxxxxxxxx
                object: webhook_endpoint
                deleted: true
          headers: {}
          x-apifox-name: OK
      security:
        - basic: []
      x-apifox-folder: API Reference/Webhooks
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/1296482/apis/api-42648377-run
components:
  schemas:
    Webhook:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the object, like "we_xxxxx"
        object:
          type: string
          title: ''
          default: '"webhook_endpoint"'
          description: '**"webhook_endpoint"** '
        api_version:
          type: string
          description: The API version events are rendered as for this webhook endpoint.
        created:
          type: integer
          description: >-
            Time at which the object was created. Measured in seconds since the
            Unix epoch.
        description:
          type: string
          description: An optional description of what the webhook is used for.
        enabled_events:
          type: array
          items:
            type: string
          description: 'The list of events to enable for this endpoint. '
        livemode:
          type: boolean
          description: >-
            Has the value true if the object exists in live mode or the value
            false if the object exists in test mode.
        metadata:
          type: object
          properties: {}
          x-apifox-orders: []
          description: 'Set of key-value pairs that you can attach to an object. '
          x-apifox-ignore-properties: []
        status:
          type: string
          description: The status of the webhook. It can be enabled or disabled.
        secret:
          type: string
          description: >-
            The endpoint’s secret, used to generate webhook signatures. Only
            returned at creation.
        url:
          type: string
          description: The URL of the webhook endpoint.
      x-apifox-orders:
        - id
        - object
        - api_version
        - created
        - description
        - enabled_events
        - livemode
        - metadata
        - status
        - secret
        - url
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    basic:
      type: http
      scheme: basic
servers:
  - url: https://apitest.wooshpay.com
    description: 官网测试
security:
  - basic: []

```
