{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/compeller-ai/json-schema/compeller-ai-webhook-test-result-schema.json",
  "title": "WebhookTestResult",
  "description": "Outcome of a synchronous `POST /api/v1/webhooks/{id}/test` call. `delivered`\nis `true` only on a 2xx response; blocked URLs, DNS failures, connect\nerrors, timeouts, and non-2xx all surface as `delivered: false` with a\nhuman-readable `error` string.\n",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/compeller-ai-openapi.yml#/components/schemas/WebhookTestResult",
  "type": "object",
  "required": [
    "webhook_id",
    "event_id",
    "event_type",
    "delivered",
    "latency_ms"
  ],
  "properties": {
    "webhook_id": {
      "type": "integer",
      "format": "int64"
    },
    "event_id": {
      "type": "string"
    },
    "event_type": {
      "type": "string",
      "enum": [
        "webhook.test"
      ]
    },
    "delivered": {
      "type": "boolean"
    },
    "response_status": {
      "type": [
        "integer",
        "null"
      ],
      "description": "HTTP status returned by the endpoint, if one was received."
    },
    "response_body_preview": {
      "type": [
        "string",
        "null"
      ],
      "description": "First 200 chars of the endpoint's response body, if any."
    },
    "latency_ms": {
      "type": "integer",
      "description": "Wall time from safety check to response parsed, in milliseconds."
    },
    "error": {
      "type": [
        "string",
        "null"
      ],
      "description": "Populated when `delivered` is false. Examples:\n`\"url host '169.254.169.254' resolves to a reserved or internal address\"`,\n`\"ConnectException: Connection refused\"`, `\"endpoint returned HTTP 500\"`.\n"
    }
  }
}