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

# Delete Subscription

> Delete a webhook subscription.

Authentication: Requires X-API-Key header with valid API key.

Args:
    subscription_id: Subscription UUID
    identity: Authenticated API key identity
    repository: Repository for accessing subscriptions (injected)

Returns:
    None (204 No Content on success)

Raises:
    401: If API key missing or invalid
    403: If subscription belongs to different workspace
    404: If subscription not found

Example:
    DELETE /api/v1/integrations/webhooks/subscriptions/550e8400-...

    Response: 204 No Content



## OpenAPI

````yaml delete /api/integrations/webhooks/subscriptions/{subscription_id}
openapi: 3.1.0
info:
  title: Midmarket Integrations API
  description: An API for Midmarket integrations.
  version: 0.1.0
servers:
  - url: https://mm-midmarket-integrations-api-preview.azurewebsites.net
    description: preview
security: []
paths:
  /api/integrations/webhooks/subscriptions/{subscription_id}:
    delete:
      tags:
        - webhooks
      summary: Delete Subscription
      description: |-
        Delete a webhook subscription.

        Authentication: Requires X-API-Key header with valid API key.

        Args:
            subscription_id: Subscription UUID
            identity: Authenticated API key identity
            repository: Repository for accessing subscriptions (injected)

        Returns:
            None (204 No Content on success)

        Raises:
            401: If API key missing or invalid
            403: If subscription belongs to different workspace
            404: If subscription not found

        Example:
            DELETE /api/v1/integrations/webhooks/subscriptions/550e8400-...

            Response: 204 No Content
      operationId: >-
        delete_subscription_api_integrations_webhooks_subscriptions__subscription_id__delete
      parameters:
        - name: subscription_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Subscription Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - apiKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Workspace-scoped API key. Format: sk_live_{64 hex chars}'
      x-default: sk_live_your_api_key_here

````