{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aidelly-ai/json-schema/aidelly-ai-create-webhook-request-schema.json",
  "title": "CreateWebhookRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aidelly-ai-webhooks-api-openapi.yml#/components/schemas/CreateWebhookRequest",
  "type": "object",
  "required": [
    "url"
  ],
  "additionalProperties": false,
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "post.created",
          "post.scheduled",
          "post.published",
          "post.failed",
          "post.canceled",
          "inbox.item.created",
          "inbox.lead.captured"
        ]
      }
    },
    "secret": {
      "type": "string",
      "minLength": 12,
      "maxLength": 128
    },
    "description": {
      "type": "string",
      "maxLength": 140
    }
  }
}