{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tlsradar-com/json-schema/tlsradar-com-free-scan-result-schema.json",
  "title": "FreeScanResult",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tlsradar-com-openapi.json#/components/schemas/FreeScanResult",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "domain": {
          "type": "string",
          "description": "Scanned domain"
        },
        "grade": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "A+",
            "A",
            "B",
            "C",
            "D",
            "F"
          ],
          "description": "Overall SSL/TLS grade (null while pending)"
        },
        "scan_status": {
          "type": "string",
          "enum": [
            "pending",
            "success",
            "failed"
          ],
          "description": "Current scan status. Poll until not 'pending'."
        },
        "scanned_at": {
          "type": "string",
          "format": "date-time"
        },
        "share_token": {
          "type": "string",
          "description": "Token for sharing/polling this result"
        },
        "share_url": {
          "type": "string",
          "format": "uri",
          "description": "Shareable URL for this result"
        },
        "pdf_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "PDF report download URL (null while pending)"
        },
        "expiration_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "issues": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Stable identifier of the finding; absent on some findings and on older scans"
              },
              "severity": {
                "type": "string",
                "enum": [
                  "critical",
                  "high",
                  "warning",
                  "info"
                ]
              },
              "message": {
                "type": "string"
              }
            }
          }
        },
        "checks": {
          "type": "array",
          "description": "Every check this scan ran and how it came out, including the ones that passed. Empty while pending, for a failed scan, and for scans made before checks were recorded.",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "description": "Stable identifier of the check"
              },
              "label": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "passed",
                  "failed",
                  "note",
                  "not_checked"
                ],
                "description": "passed, failed (see issues), note (an ungraded note), or not_checked (did not run on this scan)"
              },
              "detail": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Set only for some not_checked checks"
              }
            }
          }
        },
        "checked_with_monitoring": {
          "type": "array",
          "description": "Checks a free scan never runs and monitoring does, with the lowest plan that has them",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string"
              },
              "plan": {
                "type": "string"
              }
            }
          }
        },
        "certificate": {
          "type": "object",
          "properties": {
            "common_name": {
              "type": "string"
            },
            "issuer": {
              "type": "string"
            },
            "valid_from": {
              "type": "string"
            },
            "valid_until": {
              "type": "string"
            },
            "expired": {
              "type": "boolean"
            },
            "matches_hostname": {
              "type": "boolean"
            },
            "trusted": {
              "type": "boolean"
            },
            "subject_alternative_names": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "monitor_cta": {
          "type": "object",
          "description": "Call-to-action for continuous monitoring signup",
          "properties": {
            "message": {
              "type": "string"
            },
            "domain": {
              "type": "string",
              "description": "The domain signing up through signup_url starts monitoring"
            },
            "signup_url": {
              "type": "string",
              "format": "uri",
              "description": "Signup link; completing signup starts monitoring domain"
            },
            "features": {
              "type": "array",
              "description": "What monitoring adds for this domain, with the lowest plan that has each",
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "plan": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}