{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oceanalt-com/json-schema/oceanalt-com-endpoint-result-schema.json",
  "title": "EndpointResult",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oceanalt-com-openapi.json#/components/schemas/EndpointResult",
  "type": "object",
  "properties": {
    "input": {
      "type": "string",
      "description": "The URL or domain you sent."
    },
    "host": {
      "type": "string",
      "description": "Hostname that was screened."
    },
    "verdict": {
      "type": "string",
      "enum": [
        "clear",
        "caution",
        "risky",
        "unknown",
        "uncertain"
      ],
      "description": "clear means no match in the lists held, not that the endpoint is safe. uncertain means the check could not run."
    },
    "risk": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 100
    },
    "risk_band": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "low",
        "medium",
        "high",
        null
      ]
    },
    "lang": {
      "type": "string"
    },
    "signals": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Human-readable, in the requested language. Do not branch on these."
    },
    "signal_keys": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Language-independent keys. Branch on these. Current endpoint keys: endpoint.brand_in_name, endpoint.brand_lookalike, endpoint.deep_subdomain, endpoint.delisted, endpoint.free_hosting, endpoint.ip_literal, endpoint.lookalike_cert, endpoint.mixed_script, endpoint.new_domain, endpoint.non_public, endpoint.parent_listed, endpoint.phishing_listed, endpoint.popular_listed, endpoint.punycode, endpoint.regulator_unlicensed, endpoint.shared_hosting, endpoint.shortener, endpoint.unparsable, endpoint.userinfo, endpoint.webrisk_listed. New keys may be added; treat an unknown key as unhandled, not as an error (see /api/contract)."
    },
    "reason_code": {
      "type": "string",
      "description": "phishing_endpoint | elevated_risk_endpoint | clear | screening_unavailable. Full table at /api/contract."
    },
    "signal_class": {
      "type": "string"
    },
    "retry": {
      "type": "string",
      "enum": [
        "non_retryable",
        "not_applicable",
        "policy_dependent_backoff",
        "retry_after_authorization",
        "retry_after_fix",
        "retryable_after_funding"
      ]
    },
    "retry_hint": {
      "type": "string"
    },
    "evidence": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "note": {
      "type": "string"
    },
    "listed_as": {
      "type": "object",
      "description": "Present when the host or a parent domain is on a phishing list.",
      "properties": {
        "source": {
          "type": "string",
          "description": "Which list."
        },
        "label": {
          "type": "string"
        },
        "firstSeen": {
          "type": "string",
          "description": "When the list first carried this host."
        },
        "lastSeen": {
          "type": "string"
        },
        "delistedAt": {
          "type": "string",
          "description": "Present when the list has since removed it (signal key endpoint.delisted)."
        }
      },
      "required": [
        "source",
        "label",
        "firstSeen"
      ]
    },
    "imitates": {
      "type": "object",
      "description": "Present when the host imitates a known brand (signal key endpoint.brand_lookalike): which brand, and its official domain to use instead.",
      "properties": {
        "brand": {
          "type": "string",
          "description": "Stable brand key, e.g. metamask."
        },
        "label": {
          "type": "string",
          "description": "Display name, e.g. MetaMask."
        },
        "official": {
          "type": "string",
          "description": "The brand's official domain, e.g. metamask.io."
        }
      },
      "required": [
        "brand",
        "label",
        "official"
      ]
    },
    "source": {
      "type": "string"
    },
    "companion": {
      "type": "string"
    },
    "standard": {
      "type": "string"
    },
    "access": {
      "type": "object",
      "description": "Your access level, usage and what the next level adds.",
      "properties": {
        "access_level": {
          "type": "string",
          "enum": [
            "anonymous",
            "registered",
            "kya"
          ]
        },
        "rate_limit_per_minute": {
          "type": "integer"
        },
        "features": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "free_calls_per_month": {
          "type": "integer"
        },
        "used_this_month": {
          "type": "integer"
        },
        "free_calls_remaining": {
          "type": "integer"
        },
        "resets_at": {
          "type": "string",
          "format": "date-time"
        },
        "key_rejected": {
          "type": "string",
          "enum": [
            "unknown_key",
            "revoked",
            "expired",
            "email_unverified",
            "bad_agent_secret"
          ],
          "description": "Present when a key was sent but not accepted; the call is then served at the anonymous level."
        },
        "key_rejected_detail": {
          "type": "string"
        },
        "upgrade": {
          "type": "object",
          "description": "The next access level and how to get it. Absent at the highest level.",
          "properties": {
            "to_level": {
              "type": "string",
              "enum": [
                "registered",
                "kya"
              ]
            },
            "how": {
              "type": "string",
              "description": "Where to get that level."
            },
            "gains": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Human-readable. Do not branch on these."
            },
            "rate_limit_per_minute": {
              "type": "integer"
            },
            "free_calls_per_month": {
              "type": "integer"
            }
          }
        },
        "upgrade_note": {
          "type": "string"
        }
      }
    },
    "detail_level": {
      "type": "string",
      "enum": [
        "full",
        "coarse"
      ]
    },
    "detail_note": {
      "type": "string"
    }
  },
  "required": [
    "input",
    "host",
    "verdict",
    "signal_keys",
    "reason_code",
    "retry"
  ]
}