{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eusend-dev/json-schema/eusend-dev-create-webhook-response-schema.json",
  "title": "CreateWebhookResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eusend-dev-webhooks-api-openapi.yml#/components/schemas/CreateWebhookResponse",
  "allOf": [
    {
      "$ref": "#/$defs/Webhook"
    },
    {
      "type": "object",
      "required": [
        "secret"
      ],
      "properties": {
        "secret": {
          "type": "string",
          "description": "Signing secret for the `X-Eusend-Signature` HMAC. Retrievable later from the secret endpoint."
        }
      }
    }
  ],
  "$defs": {
    "Webhook": {
      "type": "object",
      "required": [
        "id",
        "url",
        "events",
        "createdAt"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "events": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "email.sent",
              "email.delivered",
              "email.bounced",
              "email.complained",
              "email.opened",
              "email.clicked",
              "email.failed",
              "email.suppressed",
              "*"
            ]
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}