{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendletter-eu/json-schema/sendletter-eu-webhook-schema.json",
  "title": "Webhook",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendletter-eu-openapi.json#/components/schemas/Webhook",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Pass this to unsubscribe."
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Empty means every event."
    },
    "active": {
      "type": "boolean",
      "description": "False once deliveries have failed enough times to be given up on."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "clientId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The application that subscribed, or null for the account holder."
    }
  }
}