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

# Delete Webhook

> Remove a webhook subscription.

`DELETE /v1/webhooks/{webhook_id}`

<Note>
  **v1.0 schema lock.** The response shape on this page is the locked v1.0 contract. We will never remove a documented field, never rename a field, and never change a field's type without bumping to v2 (see [Versioning](/get-started/versioning)).
</Note>

Deactivate a webhook subscription. The endpoint will no longer receive events for this subscription. The subscription record is retained for audit purposes.

## Parameters

| Name         | Type    | In    | Required | Description                 |
| ------------ | ------- | ----- | -------- | --------------------------- |
| `webhook_id` | integer | path  | Yes      | The webhook subscription ID |
| `api_key`    | string  | query | Yes      | Your API key                |

## Example

```bash theme={null}
curl -X DELETE "https://api.autosnap.com/v1/webhooks/42?api_key=YOUR_API_KEY"
```

## Response

```json theme={null}
{
  "success": true,
  "webhook_id": 42,
  "status": "deactivated"
}
```

## Errors

| Status | Description                            |
| ------ | -------------------------------------- |
| 404    | Webhook not found                      |
| 403    | Webhook belongs to a different account |


## OpenAPI

````yaml DELETE /v1/webhooks/{webhook_id}
openapi: 3.0.3
info:
  title: AutosnapAI Origin API
  description: Dealer resolution, inventory management, and webhook APIs
  version: 1.0.0
servers:
  - url: https://api.autosnap.com
    description: Production
security: []
paths:
  /v1/webhooks/{webhook_id}:
    delete:
      tags:
        - origin
      summary: Delete Webhook
      description: Deactivate a webhook subscription.
      operationId: delete_webhook_v1_webhooks__webhook_id__delete
      parameters:
        - name: webhook_id
          in: path
          required: true
          schema:
            type: integer
            title: Webhook Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookDeleteRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WebhookDeleteRequest:
      properties:
        api_key:
          type: string
          title: Api Key
      type: object
      required:
        - api_key
      title: WebhookDeleteRequest
    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

````