{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/verifyref-com/json-schema/verifyref-com-create-webhook-response-schema.json",
  "title": "CreateWebhookResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/verifyref-com-openapi.yml#/components/schemas/CreateWebhookResponse",
  "type": "object",
  "properties": {
    "webhook": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "events": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WebhookEvent"
          }
        },
        "active": {
          "type": "boolean"
        },
        "secret": {
          "type": "string",
          "description": "Shown only on creation — store securely"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "message": {
      "type": "string"
    }
  },
  "$defs": {
    "WebhookEvent": {
      "type": "string",
      "enum": [
        "check.created",
        "check.completed",
        "check.consent_given",
        "check.status_changed",
        "reference.responded",
        "email.bounced"
      ]
    }
  }
}