{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/simple-ai/json-schema/simple-ai-webhook-request-schema.json",
  "title": "Webhook Request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/simple-ai-webhooks-api-openapi.yml#/components/schemas/WebhookRequest",
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "title": "URL",
      "description": "The URL where webhook events will be sent"
    },
    "event_types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "call.started",
          "call.completed",
          "call.transferred",
          "call.transcript_update",
          "external_call.ingested",
          "external_call.transcribed"
        ]
      },
      "title": "Event Types",
      "description": "The types of events to subscribe to. If not specified, all event types will be included."
    },
    "description": {
      "type": "string",
      "title": "Description",
      "description": "Optional description for the webhook endpoint"
    },
    "disabled": {
      "type": "boolean",
      "title": "Disabled",
      "description": "Whether the webhook is initially disabled",
      "default": false
    },
    "rate_limit": {
      "type": "integer",
      "title": "Rate Limit",
      "description": "Optional cap on deliveries per second to this webhook"
    }
  }
}