{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prismareviews/json-schema/prismareviews-webhook-list-schema.json",
  "title": "WebhookList",
  "description": "Not paginated, and without `next_cursor`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prismareviews-webhooks-api-openapi.yml#/components/schemas/WebhookList",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Webhook"
      }
    }
  },
  "$defs": {
    "Webhook": {
      "type": "object",
      "required": [
        "id",
        "url",
        "events",
        "active",
        "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"
          }
        },
        "active": {
          "type": "boolean",
          "description": "Whether it receives deliveries."
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "When it was registered."
        }
      }
    },
    "WebhookEventFilter": {
      "type": "string",
      "enum": [
        "review.created",
        "review.updated",
        "reply.published",
        "reply.failed",
        "reply.unknown",
        "connection.updated",
        "*"
      ],
      "description": "An event type, or `*` for all."
    }
  }
}