{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fillo-so/json-schema/fillo-so-webhook-schema.json",
  "title": "Webhook",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fillo-so-webhooks-api-openapi.yml#/components/schemas/Webhook",
  "type": "object",
  "required": [
    "id",
    "url",
    "events",
    "authentication",
    "createdAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Delivered event types, e.g. response.created and optionally draft.abandoned."
    },
    "authentication": {
      "type": "string",
      "enum": [
        "none",
        "bearer",
        "x-api-key"
      ],
      "description": "Configured receiver-authentication mode. The credential is never returned."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}