---
title: "ContractDeletedWebhookEvent"
url: "https://developer.agentsync.io/apis/contracting-hierarchies-api/versions/40f58935-396e-4da4-8f47-1587041e1b16/schemas/ContractDeletedWebhookEvent"
---

> Full API specification: https://developer.agentsync.io/apis/contracting-hierarchies-api/versions/40f58935-396e-4da4-8f47-1587041e1b16.md

# ContractDeletedWebhookEvent

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: AgentSync Contracting & Hierarchies API
  version: v1.7.6
servers:
  - url: https://api.sandbox.agentsync.io/contracting
    description: Sandbox
  - url: https://api.agentsync.io/contracting
    description: Production
components:
  schemas:
    WebhookEventEnvelope:
      title: WebhookEventEnvelope
      type: object
      description: |
        Common wrapper present on every outbound webhook event. The `data` field
        is polymorphic; its schema depends on the value of `type`.
      required:
        - id
        - type
      properties:
        id:
          type: string
          description: |
            Globally unique event identifier. Uses the TypeID format with the
            prefix `whe_` followed by a UUIDv7-derived suffix
            (e.g. `whe_01j8e4k2abc123def456`). Use this field to deduplicate
            deliveries if your endpoint receives the same event more than once.
          example: whe_01j8e4k2abc123def456
        type:
          type: string
          description: |
            Dot-notation event type string. Use this field to route the event to
            the appropriate handler in your integration.
          example: contract.assignment.updated
          enum:
            - contract.producer_status.updated
            - contract.assignment.updated
            - contract.assignment.deleted
            - contract.assignment_change.updated
            - contract.assignment_change.deleted
            - contract.packet.submitted
            - contract.updated
            - contract.deleted
            - contract.responsible_party.updated
            - hierarchy.producer.added
            - hierarchy.producer.changed
            - hierarchy.producer.relationship.terminated
    ContractDeletedData:
      title: ContractDeletedData
      type: object
      description: Payload for the `contract.deleted` event.
      required:
        - contractId
      properties:
        contractId:
          type: string
          format: uuid
          description: The unique identifier of the contract.
          example: 550e8400-e29b-41d4-a716-446655440000
    ContractDeletedWebhookEvent:
      title: ContractDeletedWebhookEvent
      allOf:
        - $ref: "#/components/schemas/WebhookEventEnvelope"
        - type: object
          required:
            - data
          properties:
            data:
              $ref: "#/components/schemas/ContractDeletedData"
```
