{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dmarc-examiner-com/json-schema/dmarc-examiner-com-webhook-schema.json",
  "title": "Webhook",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dmarc-examiner-com-openapi.yaml#/components/schemas/Webhook",
  "type": "object",
  "required": [
    "id",
    "url",
    "name",
    "secret",
    "is_active",
    "failure_count",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "HTTPS URL events are delivered to."
    },
    "name": {
      "type": "string"
    },
    "secret": {
      "type": "string",
      "description": "Shared secret used to sign deliveries (HMAC-SHA256). Verify the `X-Signature` header on each incoming POST."
    },
    "is_active": {
      "type": "boolean"
    },
    "last_triggered_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_status": {
      "type": [
        "integer",
        "null"
      ],
      "description": "HTTP status code of the most recent delivery attempt."
    },
    "failure_count": {
      "type": "integer",
      "description": "Consecutive failure count. Resets on a successful delivery."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}