{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lucca/json-schema/lucca-webhook-endpoint-update-schema.json",
  "title": "webhook-endpoint",
  "description": "A webhook-endpoint describes the endpoint on your side that will receive events from your Lucca account.\n\nIt must handle HTTPS and support POST requests.\n\nIt should always check the signature of received events in order to increase security.\n\nIt should respond as fast as possible (less than 3s), otherwise the server may stop sending it events.\n\nPlease refer to the [webhooks documentation](/documentation/webhooks) to learn more about webhook-endpoints.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lucca-webhooks-api-openapi.yml#/components/schemas/webhook-endpoint.update",
  "x-tags": [
    "Webhooks"
  ],
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1
    },
    "apiVersion": {
      "type": "string",
      "format": "date"
    },
    "webhookUrl": {
      "type": "string",
      "format": "uri",
      "description": "URL of the receiving endpoint on your side. MUST use the `https://` schema."
    },
    "topics": {
      "type": "array",
      "description": "See complete [list of all topics](../events/event) in the event definition.",
      "items": {
        "type": "string"
      }
    },
    "businessEstablishments": {
      "type": [
        "null",
        "array"
      ],
      "uniqueItems": true,
      "minItems": 1,
      "items": {
        "title": "business-establishment-reference",
        "description": "Reference to a [business-establishment](../organization/business-establishment) resource.",
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "id"
        ]
      }
    },
    "status": {
      "description": "'active': delivery attempts will be executed.\n'suspended': if too many errors are encountered on delivery. Events are kept in history.\n'inactive': events are neither sent nor kept in history.",
      "type": "string",
      "enum": [
        "active",
        "suspended",
        "inactive"
      ],
      "x-enumDescriptions": {
        "active": "Events will be delivered.",
        "suspended": "Events are not be delivered but are kept in history.",
        "inactive": "Events are neither sent nor kept in history."
      },
      "default": "inactive"
    }
  }
}