{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendraven-ai/json-schema/sendraven-ai-webhook-endpoint-schema.json",
  "title": "WebhookEndpoint",
  "description": "A webhook endpoint. The signing secret is left out of every response except creation.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendraven-ai-webhook-endpoints-api-openapi.yml#/components/schemas/WebhookEndpoint",
  "type": "object",
  "required": [
    "id",
    "url",
    "events",
    "enabled",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "url": {
      "type": "string",
      "description": "Where deliveries are POSTed."
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "inbound",
          "send",
          "delivery",
          "bounce",
          "complaint",
          "reject",
          "open",
          "click",
          "rendering_failure",
          "delivery_delay",
          "unsubscribe"
        ]
      }
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether deliveries are made. True on creation."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}