{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Release Regression Command Center",
    "description": "Compare a bounded, robots-permitted sample of your public site against a saved baseline after each release and get severity-ranked regressions with source-linked evidence.",
    "version": "0.1",
    "x-build-id": "PaeOfHClqSQbNnmaY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/practical_ai_lab_jp~pal-website-release-regression-command-center/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-practical_ai_lab_jp-pal-website-release-regression-command-center",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/practical_ai_lab_jp~pal-website-release-regression-command-center/runs": {
      "post": {
        "operationId": "runs-sync-practical_ai_lab_jp-pal-website-release-regression-command-center",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/practical_ai_lab_jp~pal-website-release-regression-command-center/run-sync": {
      "post": {
        "operationId": "run-sync-practical_ai_lab_jp-pal-website-release-regression-command-center",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "startUrl"
        ],
        "properties": {
          "startUrl": {
            "title": "Site root URL",
            "type": "string",
            "description": "Public HTTPS site root you are authorised to monitor, for example https://example.com/ (no path, query string or credentials)."
          },
          "maxPages": {
            "title": "Maximum pages to snapshot",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Home page plus a stable sample of sitemap pages. More pages means broader coverage and a longer run.",
            "default": 40
          },
          "pathPrefixes": {
            "title": "Only monitor these path prefixes",
            "type": "array",
            "description": "Optional. Limit sitemap pages to paths starting with these prefixes, for example /blog/ or /products/. The home page is always included. Up to 10 entries, each starting with /.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minSeverity": {
            "title": "Minimum severity to report",
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string",
            "description": "Findings below this level are hidden from the report.",
            "default": "low"
          },
          "baselineUpdate": {
            "title": "When to update the saved baseline",
            "enum": [
              "after_each_run",
              "when_no_blocking_findings",
              "never"
            ],
            "type": "string",
            "description": "after_each_run reports each regression once. when_no_blocking_findings keeps the old baseline until a run has no high or critical findings. never pins the baseline until you reset it.",
            "default": "after_each_run"
          },
          "resetBaseline": {
            "title": "Reset baseline",
            "type": "boolean",
            "description": "Discard the saved baseline for this domain and create a fresh one in this run.",
            "default": false
          },
          "stateStoreName": {
            "title": "Baseline storage name",
            "type": "string",
            "description": "Named key-value store that keeps baselines between runs (3-63 lowercase letters, digits or hyphens). Leave empty to use the run's default store, which does not persist between cloud runs.",
            "default": "pal-release-regression-baselines"
          },
          "maxSitemapFiles": {
            "title": "Maximum sitemap files to read",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Upper bound on sitemap and sitemap index files fetched in one run (1-20).",
            "default": 5
          },
          "maxSitemapUrls": {
            "title": "Maximum sitemap URLs to read",
            "minimum": 100,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper bound on page URLs collected from sitemaps before sampling (100-10000).",
            "default": 2000
          },
          "maxLinksPerPage": {
            "title": "Internal links to follow per page",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many distinct same-site links per page are registered for broken-link checks (1-200).",
            "default": 50
          },
          "maxLinkChecks": {
            "title": "Maximum internal link checks per run",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of extra requests used to verify internal link targets that are not sampled pages. Use 0 to skip link checks.",
            "default": 150
          },
          "maxResourceChecks": {
            "title": "Maximum CSS, script and image checks per run",
            "minimum": 0,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum number of same-site stylesheets, scripts, images and icons verified per run. Use 0 to skip resource checks.",
            "default": 60
          },
          "maxPageBytes": {
            "title": "Maximum bytes read per page",
            "minimum": 50000,
            "maximum": 2000000,
            "type": "integer",
            "description": "Responses larger than this are truncated; missing-title and removed-canonical findings are skipped for truncated pages.",
            "default": 1000000
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 100,
            "maximum": 5000,
            "type": "integer",
            "description": "A larger Crawl-delay in robots.txt overrides this value (capped at 10 seconds).",
            "default": 300
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Per-request timeout. Slow responses are recorded as no response.",
            "default": 15
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}