{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mailcheer-com/json-schema/mailcheer-com-webhook-delivery-schema.json",
  "title": "WebhookDelivery",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mailcheer-com-webhooks-api-openapi.yml#/components/schemas/WebhookDelivery",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "webhook_delivery"
    },
    "id": {
      "type": "string"
    },
    "webhook_id": {
      "type": "string"
    },
    "event_id": {
      "type": "string",
      "description": "Stable across attempts: it is the deduplication key."
    },
    "event_type": {
      "type": "string",
      "enum": [
        "email.sent",
        "email.failed",
        "email.delivered",
        "email.opened",
        "email.clicked",
        "email.bounced",
        "email.complained",
        "email.received",
        "subscriber.created",
        "subscriber.unsubscribed",
        "quota.threshold_reached"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "delivered",
        "failed"
      ]
    },
    "attempts": {
      "type": "integer"
    },
    "response_status": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The HTTP status code your service returned."
    },
    "response_body": {
      "type": [
        "string",
        "null"
      ],
      "description": "The first 500 characters of its response."
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "next_attempt_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "delivered_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}