{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sinch/main/json-schema/sinch-create-webhook-request-schema.json",
  "title": "CreateWebhookRequest",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sinch-webhooks-api-openapi.yml#/components/schemas/CreateWebhookRequest",
  "type": "object",
  "required": [
    "app_id",
    "target",
    "triggers"
  ],
  "properties": {
    "app_id": {
      "type": "string",
      "description": "The app ID"
    },
    "target": {
      "type": "string",
      "format": "uri",
      "description": "The webhook target URL"
    },
    "target_type": {
      "type": "string",
      "enum": [
        "HTTP",
        "GRPC"
      ],
      "description": "The target type",
      "default": "HTTP"
    },
    "triggers": {
      "type": "array",
      "description": "Event triggers to subscribe to",
      "items": {
        "type": "string"
      }
    },
    "secret": {
      "type": "string",
      "description": "Secret for HMAC validation"
    }
  }
}