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

# Delete Webhook Subscriptions by URL

> Deletes every webhook subscription owned by the authenticated API user whose destination exactly matches the supplied URL. The response contains the number of deleted objects followed by a per-model deletion count.



## OpenAPI

````yaml /Sela_API.yaml delete /api/webhooks/unsubscribe/
openapi: 3.0.3
info:
  title: Sela API
  version: 1.0.2
  description: >-
    Create and manage leads, configure outbound webhook subscriptions, and use
    customer-specific lead ingestion workflows. Unless an endpoint says
    otherwise, authenticate with `Authorization: Token <api-key>`.
servers:
  - url: https://api.trysela.com/
    description: Production API
security: []
tags:
  - name: Leads
    description: Create, retrieve, update, and schedule customer leads.
  - name: Call Control
    description: Pause or resume outbound calling for an API user.
  - name: Lead Types
    description: >-
      Discover lead categories and the public metadata fields accepted for each
      one.
  - name: Webhooks
    description: >-
      Manage subscriptions that deliver lead and call events to customer
      systems.
  - name: Lead Ingestion
    description: >-
      Submit provider-specific lead payloads through ingestion URLs configured
      by Sela.
  - name: File Ingestion
    description: Request temporary upload URLs for configured CSV ingestion sources.
paths:
  /api/webhooks/unsubscribe/:
    delete:
      tags:
        - Webhooks
      summary: Delete Webhook Subscriptions by URL
      description: >-
        Deletes every webhook subscription owned by the authenticated API user
        whose destination exactly matches the supplied URL. The response
        contains the number of deleted objects followed by a per-model deletion
        count.
      operationId: webhooks_unsubscribe_destroy
      parameters:
        - in: query
          name: url
          schema:
            type: string
          description: Exact destination URL of the subscriptions to delete.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  oneOf:
                    - type: integer
                    - type: object
                      additionalProperties:
                        type: integer
              examples:
                SubscriptionsDeleted:
                  value:
                    - 1
                    - agents.Webhook: 1
                  summary: Subscriptions deleted
          description: Deletion count and per-model deletion details.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookUnsubscribeValidationErrorResponse'
          description: The required webhook URL was not provided.
        '401':
          description: API token is missing or invalid.
      security:
        - tokenAuth: []
components:
  schemas:
    WebhookUnsubscribeValidationErrorResponse:
      type: object
      properties:
        url:
          type: array
          items:
            type: string
      required:
        - url
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"

````