{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bodyspec/json-schema/bodyspec-webhooks-list-response-schema.json",
  "title": "WebhooksListResponse",
  "description": "Response model for listing webhooks.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bodyspec-partner-webhooks-api-openapi.yml#/components/schemas/WebhooksListResponse",
  "properties": {
    "webhooks": {
      "items": {
        "$ref": "#/$defs/WebhookResponse"
      },
      "type": "array",
      "title": "Webhooks",
      "description": "List of webhook configurations"
    }
  },
  "type": "object",
  "required": [
    "webhooks"
  ],
  "x-internal": true,
  "$defs": {
    "WebhookEventType": {
      "type": "string",
      "enum": [
        "results_ready",
        "reservation_created",
        "reservation_canceled",
        "reservation_no_show"
      ],
      "title": "WebhookEventType",
      "description": "Supported webhook event types.",
      "x-internal": true
    },
    "WebhookResponse": {
      "properties": {
        "webhook_id": {
          "type": "string",
          "title": "Webhook Id",
          "description": "Unique identifier for the webhook (Airtable record ID)"
        },
        "url": {
          "type": "string",
          "title": "Url",
          "description": "URL configured to receive webhook events"
        },
        "event_type": {
          "$ref": "#/$defs/WebhookEventType",
          "description": "Event type this webhook is subscribed to"
        },
        "enabled": {
          "type": "boolean",
          "title": "Enabled",
          "description": "Whether the webhook is currently enabled"
        },
        "has_secret": {
          "type": "boolean",
          "title": "Has Secret",
          "description": "Whether a secret is configured for this webhook"
        },
        "create_time": {
          "type": "string",
          "format": "date-time",
          "title": "Create Time",
          "description": "When the webhook was created (UTC)"
        }
      },
      "type": "object",
      "required": [
        "webhook_id",
        "url",
        "event_type",
        "enabled",
        "has_secret",
        "create_time"
      ],
      "title": "WebhookResponse",
      "description": "Response model for a webhook configuration.",
      "x-internal": true
    }
  }
}