{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpay-so/json-schema/agentpay-so-webhook-subscribe-request-schema.json",
  "title": "WebhookSubscribeRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpay-so-webhooks-api-openapi.yml#/components/schemas/WebhookSubscribeRequest",
  "type": "object",
  "required": [
    "url",
    "eventTypes"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "eventTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "payment_verified",
          "escrow_created",
          "escrow_approved",
          "escrow_disputed",
          "rank_updated"
        ]
      }
    }
  }
}