{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usenotra-com/json-schema/usenotra-com-geo-agent-readiness-response-schema.json",
  "title": "GeoAgentReadinessResponse",
  "description": "The project's agent readiness reports, with the latest result, any running scan, the score history and the checks that changed.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usenotra-com-openapi.json#/components/schemas/GeoAgentReadinessResponse",
  "type": "object",
  "properties": {
    "targetUrl": {
      "type": "string",
      "description": "Website URL from the project's brand identity that scans run against."
    },
    "report": {
      "$ref": "#/$defs/GeoAgentReadinessReport"
    },
    "scan": {
      "$ref": "#/$defs/GeoAgentReadinessReport"
    },
    "history": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Report id."
          },
          "score": {
            "type": [
              "number",
              "null"
            ],
            "description": "Score from 0 to 100, or null when the scanner returned none."
          },
          "failedCount": {
            "type": "integer",
            "description": "Number of checks that failed in this scan."
          },
          "partialCount": {
            "type": "integer",
            "description": "Number of checks that only partly passed in this scan."
          },
          "scannedAt": {
            "type": "string",
            "description": "ISO timestamp of the scan, or of when the report was created if the scan time is unknown."
          }
        },
        "required": [
          "id",
          "score",
          "failedCount",
          "partialCount",
          "scannedAt"
        ]
      },
      "description": "Up to the 60 most recent completed scans, oldest first."
    },
    "comparison": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "previousScore": {
          "type": [
            "number",
            "null"
          ],
          "description": "Score of the scan before the latest one, from 0 to 100. Null when the scanner returned none."
        },
        "previousScannedAt": {
          "type": "string",
          "description": "ISO timestamp of the scan before the latest one."
        },
        "resolved": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Stable check identifier, used to match the same check across scans."
              },
              "name": {
                "type": "string",
                "description": "Human-readable check name."
              },
              "tier": {
                "type": "string",
                "enum": [
                  "essential",
                  "recommended",
                  "bonus"
                ],
                "description": "Score tier the scanner assigns the check to."
              },
              "previousResult": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "failed",
                  "partial",
                  null
                ],
                "description": "Result on the previous scan; null when the check passed."
              },
              "result": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "failed",
                  "partial",
                  null
                ],
                "description": "Result on the latest scan; null when the check passes now."
              }
            },
            "required": [
              "id",
              "name",
              "tier",
              "previousResult",
              "result"
            ]
          },
          "description": "Checks that had an issue before and pass now."
        },
        "added": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Stable check identifier, used to match the same check across scans."
              },
              "name": {
                "type": "string",
                "description": "Human-readable check name."
              },
              "tier": {
                "type": "string",
                "enum": [
                  "essential",
                  "recommended",
                  "bonus"
                ],
                "description": "Score tier the scanner assigns the check to."
              },
              "previousResult": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "failed",
                  "partial",
                  null
                ],
                "description": "Result on the previous scan; null when the check passed."
              },
              "result": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "failed",
                  "partial",
                  null
                ],
                "description": "Result on the latest scan; null when the check passes now."
              }
            },
            "required": [
              "id",
              "name",
              "tier",
              "previousResult",
              "result"
            ]
          },
          "description": "Checks that passed before and have an issue now."
        },
        "improved": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Stable check identifier, used to match the same check across scans."
              },
              "name": {
                "type": "string",
                "description": "Human-readable check name."
              },
              "tier": {
                "type": "string",
                "enum": [
                  "essential",
                  "recommended",
                  "bonus"
                ],
                "description": "Score tier the scanner assigns the check to."
              },
              "previousResult": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "failed",
                  "partial",
                  null
                ],
                "description": "Result on the previous scan; null when the check passed."
              },
              "result": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "failed",
                  "partial",
                  null
                ],
                "description": "Result on the latest scan; null when the check passes now."
              }
            },
            "required": [
              "id",
              "name",
              "tier",
              "previousResult",
              "result"
            ]
          },
          "description": "Checks that went from failed to partial."
        },
        "worsened": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Stable check identifier, used to match the same check across scans."
              },
              "name": {
                "type": "string",
                "description": "Human-readable check name."
              },
              "tier": {
                "type": "string",
                "enum": [
                  "essential",
                  "recommended",
                  "bonus"
                ],
                "description": "Score tier the scanner assigns the check to."
              },
              "previousResult": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "failed",
                  "partial",
                  null
                ],
                "description": "Result on the previous scan; null when the check passed."
              },
              "result": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "failed",
                  "partial",
                  null
                ],
                "description": "Result on the latest scan; null when the check passes now."
              }
            },
            "required": [
              "id",
              "name",
              "tier",
              "previousResult",
              "result"
            ]
          },
          "description": "Checks that went from partial to failed."
        }
      },
      "required": [
        "previousScore",
        "previousScannedAt",
        "resolved",
        "added",
        "improved",
        "worsened"
      ],
      "description": "Checks that changed between the latest completed scan and the one before it. Null until there are two completed scans."
    },
    "organization": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Workspace ID. Account API keys can send it, or the slug, as X-Notra-Organization-Id."
        },
        "slug": {
          "type": "string",
          "description": "URL-safe workspace handle, unique across Notra."
        },
        "name": {
          "type": "string",
          "description": "Workspace display name."
        },
        "logo": {
          "type": [
            "string",
            "null"
          ],
          "description": "Workspace logo image URL. Null when none is set."
        }
      },
      "required": [
        "id",
        "slug",
        "name",
        "logo"
      ],
      "description": "Workspace the request ran in."
    }
  },
  "required": [
    "targetUrl",
    "report",
    "scan",
    "history",
    "comparison",
    "organization"
  ],
  "$defs": {
    "GeoAgentReadinessReport": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Report id."
        },
        "status": {
          "type": "string",
          "enum": [
            "running",
            "completed",
            "failed"
          ],
          "description": "Scan state of this report."
        },
        "targetUrl": {
          "type": "string",
          "description": "Website URL that was scanned."
        },
        "score": {
          "type": [
            "number",
            "null"
          ],
          "description": "Agent readiness score from 0 to 100. Null until the scan completes."
        },
        "scoreLabel": {
          "type": [
            "string",
            "null"
          ],
          "description": "Label the Is Agentic scanner (is-agentic.com) gives the score, stored as returned. Its API defines it as free text, so treat it as display text rather than a fixed set of values. Null until the scan completes."
        },
        "scoreBreakdown": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "essential": {
              "type": "object",
              "properties": {
                "earned": {
                  "type": "number",
                  "description": "Score points earned by the checks in this tier."
                },
                "available": {
                  "type": "number",
                  "description": "Score points this tier can contribute."
                },
                "passing": {
                  "type": "number",
                  "description": "Number of checks in this tier that passed."
                },
                "total": {
                  "type": "number",
                  "description": "Number of checks in this tier."
                }
              },
              "required": [
                "earned",
                "available",
                "passing",
                "total"
              ],
              "description": "Points and checks in the essential tier."
            },
            "recommended": {
              "type": "object",
              "properties": {
                "earned": {
                  "type": "number",
                  "description": "Score points earned by the checks in this tier."
                },
                "available": {
                  "type": "number",
                  "description": "Score points this tier can contribute."
                },
                "passing": {
                  "type": "number",
                  "description": "Number of checks in this tier that passed."
                },
                "total": {
                  "type": "number",
                  "description": "Number of checks in this tier."
                }
              },
              "required": [
                "earned",
                "available",
                "passing",
                "total"
              ],
              "description": "Points and checks in the recommended tier."
            },
            "bonus": {
              "type": "object",
              "properties": {
                "points": {
                  "type": "number",
                  "description": "Extra score points earned from bonus signals."
                },
                "positiveSignals": {
                  "type": "number",
                  "description": "Number of bonus signals detected."
                }
              },
              "required": [
                "points",
                "positiveSignals"
              ],
              "description": "Bonus signals that add points on top of the tiers."
            }
          },
          "required": [
            "essential",
            "recommended",
            "bonus"
          ],
          "description": "Points and passing checks per tier. Null until the scan completes."
        },
        "issues": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Stable check identifier, used to match the same check across scans."
              },
              "name": {
                "type": "string",
                "description": "Human-readable check name."
              },
              "tier": {
                "type": "string",
                "enum": [
                  "essential",
                  "recommended",
                  "bonus"
                ],
                "description": "Score tier the scanner assigns the check to."
              },
              "result": {
                "type": "string",
                "enum": [
                  "failed",
                  "partial"
                ],
                "description": "A failed check did not pass, and a partial check only partly passed."
              },
              "details": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "What the check found. Null when the scanner gave no details."
              },
              "recommendation": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Suggested fix. Null when the scanner gave no recommendation."
              }
            },
            "required": [
              "id",
              "name",
              "tier",
              "result",
              "details",
              "recommendation"
            ]
          },
          "description": "Checks that failed or only partly passed. Passing checks are not listed."
        },
        "eligibleChecks": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Number of checks that applied to this website. Null until the scan completes."
        },
        "errorMessage": {
          "type": [
            "string",
            "null"
          ],
          "description": "Why the scan failed. Null unless status is failed."
        },
        "scannedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO timestamp of when the website was scanned. Null until the scan completes."
        },
        "createdAt": {
          "type": "string",
          "description": "ISO timestamp when the scan was requested."
        }
      },
      "required": [
        "id",
        "status",
        "targetUrl",
        "score",
        "scoreLabel",
        "scoreBreakdown",
        "issues",
        "eligibleChecks",
        "errorMessage",
        "scannedAt",
        "createdAt"
      ],
      "description": "One agent readiness scan of the project's website. As `report` it is the latest completed scan; as `scan` it is a newer run that is still running or failed. Either is null when there is none."
    }
  }
}