{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC 8-K Executive Changes Monitor — CEO/CFO Alerts",
    "description": "Real-time alerts on every SEC 8-K Item 5.02 filing — track CEO/CFO/CTO appointments, departures, and resignations at every public company. Granular filtering by ticker, role, sub-item (5.02a/b/c/d/e/f), and narrative keywords. The Boardex /\n  BoardroomAlpha alternative for mid-market.",
    "version": "0.0",
    "x-build-id": "MVkINM5b5QP85chcY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/incontrovertible_gate~8k-executive-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-incontrovertible_gate-8k-executive-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/incontrovertible_gate~8k-executive-monitor/runs": {
      "post": {
        "operationId": "runs-sync-incontrovertible_gate-8k-executive-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/incontrovertible_gate~8k-executive-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-incontrovertible_gate-8k-executive-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": [
          "userAgent",
          "itemFilter"
        ],
        "properties": {
          "itemFilter": {
            "title": "Which 8-K items to monitor",
            "uniqueItems": true,
            "type": "array",
            "description": "8-K Item 5.02 has six sub-items, each tracking a different event. Pick the ones you care about. Default = all departures + appointments (a, b, c, d).",
            "items": {
              "type": "string",
              "enum": [
                "5.02(a)",
                "5.02(b)",
                "5.02(c)",
                "5.02(d)",
                "5.02(e)",
                "5.02(f)"
              ],
              "enumTitles": [
                "5.02(a) — Director resignation/refusal/dismissal",
                "5.02(b) — Departure of officer/director (voluntary)",
                "5.02(c) — Appointment of officer",
                "5.02(d) — Election of director",
                "5.02(e) — Compensation arrangement",
                "5.02(f) — Salary/bonus determination"
              ]
            },
            "default": [
              "5.02(a)",
              "5.02(b)",
              "5.02(c)",
              "5.02(d)"
            ]
          },
          "tickers": {
            "title": "Tickers to watch (optional)",
            "type": "array",
            "description": "Stock tickers (e.g. NVDA, TSLA, META). Empty = match all public companies. Use this to track specific portfolio companies, competitors, or buy-side targets.",
            "items": {
              "type": "string"
            }
          },
          "sicCodes": {
            "title": "Industry SIC codes (optional)",
            "type": "array",
            "description": "4-digit SIC codes to limit by industry (e.g. 7370 = Computer Services, 2834 = Pharma, 6020 = Banking). See SEC SIC code list. Empty = all industries.",
            "items": {
              "type": "string"
            }
          },
          "roleKeywords": {
            "title": "Role keywords to match in narrative",
            "type": "array",
            "description": "Substring match (case-insensitive) in the 8-K narrative. Common values: CEO, CFO, CTO, COO, President, Chairman, Chief, Director, General Counsel. Empty = match all 5.02 events.",
            "default": [
              "CEO",
              "CFO",
              "CTO",
              "COO",
              "President",
              "Chief",
              "Chairman",
              "General Counsel"
            ],
            "items": {
              "type": "string"
            }
          },
          "personNames": {
            "title": "Track specific persons by name (optional)",
            "type": "array",
            "description": "Substring match on the 8-K body. Use to track specific executives across companies.",
            "items": {
              "type": "string"
            }
          },
          "departureKeywords": {
            "title": "Departure narrative keywords",
            "type": "array",
            "description": "Words that signal a meaningful departure. Default catches voluntary + forced + retirement language. Empty = no narrative-keyword filter.",
            "default": [
              "resign",
              "retire",
              "step down",
              "stepped down",
              "depart",
              "no longer",
              "terminate",
              "remove"
            ],
            "items": {
              "type": "string"
            }
          },
          "appointmentKeywords": {
            "title": "Appointment narrative keywords",
            "type": "array",
            "description": "Words that signal a new appointment. Default catches both promotions and outside hires.",
            "default": [
              "appoint",
              "hire",
              "join",
              "named",
              "elect",
              "promot",
              "succeed"
            ],
            "items": {
              "type": "string"
            }
          },
          "requireMatchingNarrative": {
            "title": "Require narrative keyword match",
            "type": "boolean",
            "description": "If true, the 8-K body must contain at least one keyword from `roleKeywords` AND one from `departureKeywords` OR `appointmentKeywords`. Default true to filter out boilerplate filings (annual board re-elections, etc.).",
            "default": true
          },
          "excludeAmendments": {
            "title": "Exclude 8-K/A amendments",
            "type": "boolean",
            "description": "If true, skip 8-K/A re-filings. Default true.",
            "default": true
          },
          "lookbackHours": {
            "title": "Lookback window (hours)",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Each run checks recent 8-K filings filed within this window. Dedup KV ensures no duplicate alerts.",
            "default": 24
          },
          "notificationChannel": {
            "title": "Notification channel",
            "enum": [
              "none",
              "slack",
              "email",
              "webhook"
            ],
            "type": "string",
            "description": "'none' = dataset only.",
            "default": "none"
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Slack incoming-webhook URL. Required when channel is 'slack'."
          },
          "emailRecipient": {
            "title": "Email recipient address",
            "type": "string",
            "description": "Email address for digest-mode alerts. Required when channel is 'email'."
          },
          "emailSubjectPrefix": {
            "title": "Email subject prefix",
            "type": "string",
            "description": "Prepended to every email alert subject.",
            "default": "[8-K Executive Monitor]"
          },
          "customWebhookUrl": {
            "title": "Custom webhook URL",
            "type": "string",
            "description": "HTTPS endpoint receiving JSON POST per match. Required when channel is 'webhook'."
          },
          "userAgent": {
            "title": "SEC User-Agent",
            "type": "string",
            "description": "Required by SEC fair-access policy: `Your Name your@email.com`."
          },
          "testMode": {
            "title": "Test mode",
            "type": "boolean",
            "description": "Ignore dedup state and fire one alert for the most recent matching filing.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}