{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "browse": {
      "description": "Server-sorted authorized saved rows; omit for legacy paging.",
      "type": "boolean"
    },
    "sort": {
      "description": "Allowlisted saved-field identifier.",
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "order": {
      "description": "Sort direction; stable ID ties, nulls last.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "q": {
      "description": "Literal search of supported saved fields.",
      "type": "string",
      "maxLength": 500
    },
    "table_filters": {
      "description": "Up to 12 allowlisted column filters before paging.",
      "anyOf": [
        {
          "type": "string",
          "maxLength": 8192
        },
        {
          "maxItems": 12,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "column": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "operator": {
                "type": "string",
                "enum": [
                  "contains",
                  "is",
                  "is_not",
                  "empty"
                ]
              },
              "value": {
                "type": "string",
                "maxLength": 500
              }
            },
            "required": [
              "column",
              "operator",
              "value"
            ],
            "additionalProperties": false
          }
        }
      ]
    },
    "runId": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,128}$",
      "description": "run ID from create/list."
    },
    "by": {
      "type": "string",
      "enum": [
        "referring_site",
        "anchor"
      ],
      "description": "Group by linking site or by anchor text."
    },
    "limit": {
      "description": "Page/report row cap; see bounds.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 25
    },
    "cursor": {
      "description": "Opaque list cursor; omit initially.",
      "type": "string",
      "minLength": 1,
      "maxLength": 16384
    },
    "follow": {
      "description": "Followed or nofollow, as the backlink index reported it.",
      "type": "string",
      "enum": [
        "dofollow",
        "nofollow"
      ]
    },
    "check": {
      "description": "Latest check result of the row.",
      "type": "string",
      "enum": [
        "live",
        "not_found",
        "couldnt_check",
        "not_checked"
      ]
    },
    "minAuthority": {
      "description": "Minimum retained domain strength (0-1,000). Rows without a score are excluded.",
      "type": "integer",
      "minimum": 0,
      "maximum": 1000
    },
    "maxSpam": {
      "description": "Maximum retained spam risk (0-100). Rows without a score are excluded.",
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "newSinceLastSearch": {
      "description": "Only rows absent from the previous finished search of this website.",
      "type": "boolean"
    },
    "site": {
      "description": "One referring site (host without www).",
      "type": "string",
      "minLength": 1,
      "maxLength": 253
    },
    "anchor": {
      "description": "Anchor text, compared normalized; empty matches rows without anchor text.",
      "type": "string",
      "maxLength": 4096
    }
  },
  "required": [
    "runId",
    "by"
  ],
  "additionalProperties": false
}
