{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/0xinsider-com/json-schema/0xinsider-com-webhook-verification-attempt-schema.json",
  "title": "WebhookVerificationAttempt",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/0xinsider-com-webhooks-api-openapi.yml#/components/schemas/WebhookVerificationAttempt",
  "type": "object",
  "required": [
    "id",
    "object",
    "webhook_id",
    "state",
    "outcome",
    "attempt_count",
    "max_attempts",
    "expires_at",
    "next_attempt_at",
    "last_response_status",
    "started_at",
    "completed_at",
    "created_at",
    "updated_at",
    "status_url"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "object": {
      "type": "string",
      "const": "webhook_verification_attempt"
    },
    "webhook_id": {
      "type": "integer",
      "format": "int64"
    },
    "state": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "verified",
        "failed",
        "cancelled",
        "expired"
      ],
      "description": "queued/running are pending consent. verified means the same endpoint revision answered 2xx and activated atomically. failed/cancelled/expired are terminal and do not restart on polling or replay."
    },
    "outcome": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "verified",
        "target_rejected",
        "challenge_timeout",
        "transport_failed",
        "receiver_rejected",
        "token_expired",
        "endpoint_changed",
        "owner_revoked",
        "attempts_exhausted",
        "internal_error",
        null
      ],
      "description": "Sanitized last observation. Null before an observation; queued retries may retain their previous failure outcome."
    },
    "attempt_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 4
    },
    "max_attempts": {
      "type": "integer",
      "const": 4
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "Earlier of the verification-token deadline and 15 minutes after admission. Activation is forbidden at or after this instant."
    },
    "next_attempt_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Scheduled retry/admission time while queued; null while running or terminal."
    },
    "last_response_status": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 100,
      "maximum": 599,
      "description": "Actual receiver HTTP status, when one arrived. No receiver response body or resolved address is returned."
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "status_url": {
      "type": "string",
      "description": "Relative authorized API path for this attempt. Uses the same bearer credential as admission."
    }
  },
  "additionalProperties": false
}