{
  "openapi": "3.0.1",
  "info": {
    "title": "Status Page, SSL Expiry & Endpoint Change Monitor",
    "description": "Monitor SaaS status pages (Statuspage.io, Instatus, BetterStack, RSS/Atom), HTTPS uptime, and TLS/SSL certificate expiry with stateful delta alerts. Zero proxies, zero API keys, instant n8n/Make/Slack/MCP alerts.",
    "version": "1.0",
    "x-build-id": "opnUFuuDFRK8ZqdUO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/simon_kundrik~status-ssl-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-simon_kundrik-status-ssl-change-monitor",
        "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/simon_kundrik~status-ssl-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-simon_kundrik-status-ssl-change-monitor",
        "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/simon_kundrik~status-ssl-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-simon_kundrik-status-ssl-change-monitor",
        "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",
        "properties": {
          "statusPages": {
            "title": "Vendor Status Page URLs",
            "type": "array",
            "description": "Public status page base URLs or RSS/Atom status feeds (e.g. Statuspage.io like https://www.githubstatus.com, Instatus, BetterStack, AWS/GCP RSS/Atom feeds).",
            "default": [
              "https://www.githubstatus.com",
              "https://www.cloudflarestatus.com",
              "https://status.openai.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "endpoints": {
            "title": "HTTPS / HTTP Endpoint URLs (Uptime + SSL)",
            "type": "array",
            "description": "Websites, APIs, or healthcheck URLs to probe for HTTP availability, status code changes, latency spikes, and TLS/SSL certificate expiration.",
            "default": [
              "https://github.com",
              "https://api.github.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "watchEvents": {
            "title": "Events to Watch",
            "type": "array",
            "description": "Which stateful transitions or alerts to emit. Leave default to track all incidents, outages, recoveries, and SSL warnings.",
            "default": [
              "incident_opened",
              "incident_updated",
              "incident_resolved",
              "component_degraded",
              "component_recovered",
              "maintenance_scheduled",
              "status_changed",
              "endpoint_down",
              "endpoint_recovered",
              "status_code_changed",
              "ssl_expiring_soon",
              "ssl_expired",
              "ssl_cert_changed",
              "latency_spike"
            ],
            "items": {
              "type": "string"
            }
          },
          "sslWarnDays": {
            "title": "SSL Expiry Warning Threshold (Days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Emit an ssl_expiring_soon alert when an HTTPS endpoint certificate expires within this many days.",
            "default": 30
          },
          "latencyThresholdMs": {
            "title": "Latency Spike Threshold (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Optional HTTP response latency alert threshold in milliseconds. Set to 0 to disable latency spike alerts.",
            "default": 0
          },
          "deltaMode": {
            "title": "Stateful Delta Mode",
            "type": "boolean",
            "description": "When enabled, saves target snapshots in your Apify Key-Value Store and emits only new incidents, status flips, cert changes, or SSL warnings on subsequent runs.",
            "default": true
          },
          "firstRunMode": {
            "title": "First-Run Behaviour",
            "enum": [
              "emit_baseline",
              "emit_issues_only",
              "baseline_only"
            ],
            "type": "string",
            "description": "How to handle a newly monitored target on its very first run: emit_baseline outputs one live status/SSL snapshot per target (recommended), emit_issues_only alerts only on active problems, baseline_only silently stores state.",
            "default": "emit_baseline"
          },
          "stateStoreName": {
            "title": "State Key-Value Store Name",
            "type": "string",
            "description": "Named Apify Key-Value Store used to persist status and certificate snapshots across scheduled runs.",
            "default": "status-ssl-monitor-state"
          },
          "stateNamespace": {
            "title": "State Namespace",
            "type": "string",
            "description": "Logical partition key inside the state store so multiple schedules can maintain independent baselines.",
            "default": "default"
          },
          "maxTotalItems": {
            "title": "Max Output Events per Run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard ceiling on dataset events emitted in a single run (Free Apify plans are capped at 25 items and 5 targets).",
            "default": 500
          },
          "requestTimeoutSecs": {
            "title": "Request Timeout (Seconds)",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout for each HTTP/HTTPS request and TLS handshake.",
            "default": 15
          },
          "dryRun": {
            "title": "Dry Run (Do Not Update State)",
            "type": "boolean",
            "description": "Run all checks and emit dataset rows without overwriting saved delta state.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}