{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/simple-ai/json-schema/simple-ai-webhook-response-schema.json",
  "title": "Webhook Response",
  "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/WebhookResponse",
  "type": "object",
  "required": [
    "endpoint_id",
    "url",
    "event_types",
    "created_at"
  ],
  "properties": {
    "endpoint_id": {
      "type": "string",
      "title": "Endpoint ID",
      "description": "Unique identifier for the webhook endpoint"
    },
    "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 the webhook is subscribed to"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "description": "Description of the webhook endpoint"
    },
    "disabled": {
      "type": "boolean",
      "title": "Disabled",
      "description": "Whether the webhook is disabled"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "When the webhook endpoint was created"
    }
  }
}