{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prismareviews/json-schema/prismareviews-webhook-created-schema.json",
  "title": "WebhookCreated",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prismareviews-webhooks-api-openapi.yml#/components/schemas/WebhookCreated",
  "type": "object",
  "required": [
    "id",
    "url",
    "events",
    "secret",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Webhook endpoint ID (`we_…`)."
    },
    "url": {
      "type": "string",
      "description": "The endpoint.",
      "format": "uri"
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WebhookEventFilter"
      }
    },
    "secret": {
      "type": "string",
      "description": "Signing secret (`whsec_…`). Shown only in this response."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When it was registered."
    }
  },
  "$defs": {
    "WebhookEventFilter": {
      "type": "string",
      "enum": [
        "review.created",
        "review.updated",
        "reply.published",
        "reply.failed",
        "reply.unknown",
        "connection.updated",
        "*"
      ],
      "description": "An event type, or `*` for all."
    }
  }
}