{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/porkbun-com/json-schema/porkbun-com-ans-verify-host-response-schema.json",
  "title": "AnsVerifyHostResponse",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/porkbun-com-openapi.json#/components/schemas/AnsVerifyHostResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "host": {
      "type": "string"
    },
    "verdict": {
      "type": "string",
      "enum": [
        "PASS",
        "FAIL",
        "INCONCLUSIVE"
      ]
    },
    "proofs": {
      "type": "object",
      "properties": {
        "identity": {
          "type": "string",
          "enum": [
            "pass",
            "fail",
            "unknown"
          ]
        },
        "liveness": {
          "type": "string",
          "enum": [
            "pass",
            "fail",
            "unknown"
          ]
        },
        "possession": {
          "type": "string",
          "enum": [
            "pass",
            "fail",
            "unknown"
          ]
        }
      }
    },
    "log": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "host": {
          "type": "string"
        },
        "registry": {
          "type": "string"
        }
      }
    },
    "ansName": {
      "type": [
        "string",
        "null"
      ]
    },
    "agentId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The registry's id for the agent, e.g. to fetch the log's signed status token for it."
    },
    "agentStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "agentUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "endpoints": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "profile": {
            "type": "string",
            "enum": [
              "ANS_TXT",
              "ANS_DNSAID"
            ]
          },
          "protocol": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "port": {
            "type": [
              "integer",
              "null"
            ]
          },
          "metadataUrl": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "identityCerts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fingerprint": {
            "type": "string",
            "description": "Lowercase hex SHA-256 of the whole certificate (DER), no `sha256:` prefix."
          },
          "notAfter": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "description": "The identity certificates the transparency log attests for this agent. Use these to check a signature the agent produced: take the certificate out of the signature (e.g. a JOSE `x5c` header), hash its DER, and require the result to appear here. Porkbun never holds the private key and the log carries no PEM, so the fingerprint is the anchor.\n\n**Membership is necessary but not sufficient.** The list accumulates: renewing an identity certificate adds a fingerprint and the previous certificate stays listed until it expires, and nothing re-emits a log entry at the moment one expires. So also check the presented certificate's own `notBefore`/`notAfter` at the time you verify, rather than trusting membership alone. (`notAfter` here is what the log recorded, not a substitute for reading the certificate.)\n\nFor the same list signed by the log's own key, with expired certificates already filtered out, fetch `GET https://tl.ans.porkbun.com/v1/agents/{agentId}/status-token` — public, a COSE_Sign1 valid for up to an hour, and 410 once the agent is revoked or expired. Use `agentId` from this response."
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "result": {
            "type": "string",
            "enum": [
              "pass",
              "fail",
              "skip",
              "unreachable"
            ]
          },
          "severity": {
            "type": "string",
            "enum": [
              "verdict",
              "evidence"
            ]
          },
          "detail": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "checkedAt": {
      "type": "string"
    },
    "publicData": {
      "type": "boolean",
      "description": "Always true: no account data was used."
    },
    "cached": {
      "type": "boolean"
    }
  }
}