{
  "openapi": "3.0.1",
  "info": {
    "title": "Operational Asset Monitor",
    "description": "Monitor public HTTPS endpoints, domains, DNS/email posture, SPF, DMARC, MTA-STS, TLS-RPT, CAA, security.txt, and security headers for operational alerts.",
    "version": "0.2",
    "x-build-id": "an7jQ2nlJBmofdg5M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silicon1235~operational-asset-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silicon1235-operational-asset-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/silicon1235~operational-asset-monitor/runs": {
      "post": {
        "operationId": "runs-sync-silicon1235-operational-asset-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/silicon1235~operational-asset-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-silicon1235-operational-asset-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",
        "required": [
          "endpoints"
        ],
        "properties": {
          "endpoints": {
            "title": "Endpoints",
            "type": "array",
            "description": "Public HTTPS/HTTP endpoints to check.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "Public HTTP or HTTPS URL to check."
                },
                "name": {
                  "type": "string",
                  "title": "Display name",
                  "description": "Optional label shown in output rows and reports."
                }
              }
            }
          },
          "maxEndpoints": {
            "title": "Maximum endpoints",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cost guard for how many endpoints to check in one run.",
            "default": 10
          },
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "Public domain names to check through RDAP for registration expiry.",
            "items": {
              "type": "object",
              "required": [
                "domain"
              ],
              "properties": {
                "domain": {
                  "type": "string",
                  "title": "Domain",
                  "description": "Domain name to check, such as example.com."
                },
                "name": {
                  "type": "string",
                  "title": "Display name",
                  "description": "Optional label shown in output rows and reports."
                }
              }
            },
            "default": []
          },
          "maxDomains": {
            "title": "Maximum domains",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cost guard for how many domains to check in one run.",
            "default": 10
          },
          "dnsDomains": {
            "title": "DNS / email domains",
            "type": "array",
            "description": "Public domain names to check for MX, SPF, DMARC, and CAA records. Use this for email/DNS/certificate-authority posture drift monitoring.",
            "items": {
              "type": "object",
              "required": [
                "domain"
              ],
              "properties": {
                "domain": {
                  "type": "string",
                  "title": "Domain",
                  "description": "Domain name to check, such as example.com."
                },
                "name": {
                  "type": "string",
                  "title": "Display name",
                  "description": "Optional label shown in output rows and reports."
                }
              }
            },
            "default": []
          },
          "maxDnsDomains": {
            "title": "Maximum DNS domains",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cost guard for how many DNS/email domains to check in one run.",
            "default": 10
          },
          "securityTextDomains": {
            "title": "security.txt domains",
            "type": "array",
            "description": "Public domains to check for vulnerability disclosure metadata in /.well-known/security.txt and /security.txt plus compact security well-known posture endpoints such as CSAF provider metadata, change-password, OpenID configuration, assetlinks, and Apple app-site association.",
            "items": {
              "type": "object",
              "required": [
                "domain"
              ],
              "properties": {
                "domain": {
                  "type": "string",
                  "title": "Domain",
                  "description": "Domain name to check, such as example.com."
                },
                "name": {
                  "type": "string",
                  "title": "Display name",
                  "description": "Optional label shown in output rows and reports."
                }
              }
            },
            "default": []
          },
          "maxSecurityTextDomains": {
            "title": "Maximum security.txt domains",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cost guard for how many vulnerability disclosure domains to check in one run.",
            "default": 10
          },
          "certificateTransparencyUrls": {
            "title": "Certificate Transparency JSON URLs",
            "type": "array",
            "description": "Public JSON URLs containing recent certificate transparency rows to parse. Defaults to empty to avoid extra network calls unless explicitly enabled.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "JSON URL",
                  "description": "Public JSON URL containing certificate rows."
                },
                "name": {
                  "type": "string",
                  "title": "Display name",
                  "description": "Optional label shown in output rows and reports."
                },
                "expectedDomain": {
                  "type": "string",
                  "title": "Expected domain",
                  "description": "Optional domain suffix used to flag certificates outside the expected asset scope."
                }
              }
            },
            "default": []
          },
          "maxCertificateTransparencyUrls": {
            "title": "Maximum CT URLs",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cost guard for how many Certificate Transparency JSON URLs to fetch in one run.",
            "default": 10
          },
          "sslWarnDays": {
            "title": "SSL warning threshold days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Mark a certificate as WARN when it expires within this many days.",
            "default": 30
          },
          "sslCriticalDays": {
            "title": "SSL critical threshold days",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Mark a certificate as CRITICAL when it expires within this many days.",
            "default": 7
          },
          "domainWarnDays": {
            "title": "Domain warning threshold days",
            "minimum": 1,
            "maximum": 730,
            "type": "integer",
            "description": "Mark a domain as WARN when registration expires within this many days.",
            "default": 45
          },
          "domainCriticalDays": {
            "title": "Domain critical threshold days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Mark a domain as CRITICAL when registration expires within this many days.",
            "default": 14
          },
          "httpTimeoutMs": {
            "title": "HTTP timeout in milliseconds",
            "minimum": 1000,
            "maximum": 30000,
            "type": "integer",
            "description": "Timeout used for TLS and HTTP checks.",
            "default": 8000
          },
          "previousAssetIds": {
            "title": "Previous asset IDs",
            "type": "array",
            "description": "Optional IDs from a previous run to suppress unchanged alerts.",
            "items": {
              "type": "string"
            },
            "default": []
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}