{"openapi":"3.1.0","paths":{"/v1/trades/latest":{"get":{"description":"Cursor-paginated list of the most recent Form 4 open-market purchases and sales (code P and S) by corporate insiders, newest filing first. Default lookback is 30 days. Filings FilingIQ flags as implausible, IPO allocations and both legs of a share-class exchange are left out.","operationId":"SignalsController_listLatestTrades","parameters":[{"name":"X-Request-ID","in":"header","description":"Optional client-supplied trace id. Echoed in response headers and error envelopes.","required":false,"schema":{"type":"string"}},{"name":"FilingIQ-Version","in":"header","description":"Pin the response shape to a specific FilingIQ-Version (YYYY-MM-DD). Documentation-only in v1; routing on this header lands with v2.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Items per page. 1 to 100. Default 25.","schema":{"example":25,"type":"number"}},{"name":"starting_after","required":false,"in":"query","description":"Opaque cursor. Every row appears on exactly one page.","schema":{"type":"string"}},{"name":"ticker","required":false,"in":"query","description":"Comma-separated ticker filter, e.g. NVDA,AMD. At most 20.","schema":{"type":"string"}},{"name":"min_score","required":false,"in":"query","deprecated":true,"description":"Discontinued on 2026-10-14. Accepted and ignored.","schema":{"type":"number"}},{"name":"expand","required":false,"in":"query","description":"Comma-separated expansions. latency adds the processing timeline of each trade.","schema":{"type":"string"}}],"responses":{"200":{"description":"List of trades.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","description":"Always list.","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Trade"}},"has_more":{"type":"boolean","description":"True when another page follows."},"next_cursor":{"type":["string","null"],"description":"Pass as starting_after to fetch the next page. Null on the last page."}}}}}},"400":{"description":"Invalid request parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Authentication failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Tier does not include API access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate-limited. error.code says which limit: too_many_requests (the per-minute limit of this API key, Retry-After of a second or two), daily_request_quota_exhausted (the daily request quota of the account, 10,000 requests per UTC day on Professional, shared by all its keys; Retry-After until 00:00 UTC) or rows_quota_exhausted (the daily row budget of the account, 1,000,000 rows; Retry-After until 00:00 UTC). Honor the Retry-After response header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"ApiKey":[]}],"summary":"List the latest trades","tags":["Trades"]}},"/v1/clusters":{"get":{"description":"The trades of the last 30 days at companies where two or more different insiders made open-market purchases within 90 days. Same item shape and order as /v1/trades/latest.","operationId":"SignalsController_listClusters","parameters":[{"name":"X-Request-ID","in":"header","description":"Optional client-supplied trace id. Echoed in response headers and error envelopes.","required":false,"schema":{"type":"string"}},{"name":"FilingIQ-Version","in":"header","description":"Pin the response shape to a specific FilingIQ-Version (YYYY-MM-DD). Documentation-only in v1; routing on this header lands with v2.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Items per page. 1 to 100. Default 25.","schema":{"example":25,"type":"number"}},{"name":"starting_after","required":false,"in":"query","description":"Opaque cursor. Every row appears on exactly one page.","schema":{"type":"string"}},{"name":"ticker","required":false,"in":"query","description":"Comma-separated ticker filter, e.g. NVDA,AMD. At most 20.","schema":{"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Comma-separated expansions. latency adds the processing timeline of each trade.","schema":{"type":"string"}}],"responses":{"200":{"description":"List of trades.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","description":"Always list.","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Trade"}},"has_more":{"type":"boolean","description":"True when another page follows."},"next_cursor":{"type":["string","null"],"description":"Pass as starting_after to fetch the next page. Null on the last page."}}}}}},"401":{"description":"Authentication failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate-limited. error.code says which limit: too_many_requests (the per-minute limit of this API key, Retry-After of a second or two), daily_request_quota_exhausted (the daily request quota of the account, 10,000 requests per UTC day on Professional, shared by all its keys; Retry-After until 00:00 UTC) or rows_quota_exhausted (the daily row budget of the account, 1,000,000 rows; Retry-After until 00:00 UTC). Honor the Retry-After response header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"ApiKey":[]}],"summary":"List trades at companies where several insiders bought","tags":["Trades"]}},"/v1/congress_trades":{"get":{"description":"Per-transaction feed of periodic transaction reports filed by Members of Congress, newest filing first. A disclosure gives a value range, not an amount.","operationId":"SignalsController_listCongressTrades","parameters":[{"name":"X-Request-ID","in":"header","description":"Optional client-supplied trace id. Echoed in response headers and error envelopes.","required":false,"schema":{"type":"string"}},{"name":"FilingIQ-Version","in":"header","description":"Pin the response shape to a specific FilingIQ-Version (YYYY-MM-DD). Documentation-only in v1; routing on this header lands with v2.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Items per page. 1 to 100. Default 25.","schema":{"example":25,"type":"number"}},{"name":"starting_after","required":false,"in":"query","description":"Opaque cursor. Every row appears on exactly one page.","schema":{"type":"string"}},{"name":"ticker","required":false,"in":"query","description":"Comma-separated ticker filter, e.g. NVDA,AMD. At most 20.","schema":{"type":"string"}}],"responses":{"200":{"description":"List of congressional disclosures.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","description":"Always list.","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/CongressTrade"}},"has_more":{"type":"boolean","description":"True when another page follows."},"next_cursor":{"type":["string","null"],"description":"Pass as starting_after to fetch the next page. Null on the last page."}}}}}},"401":{"description":"Authentication failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate-limited. error.code says which limit: too_many_requests (the per-minute limit of this API key, Retry-After of a second or two), daily_request_quota_exhausted (the daily request quota of the account, 10,000 requests per UTC day on Professional, shared by all its keys; Retry-After until 00:00 UTC) or rows_quota_exhausted (the daily row budget of the account, 1,000,000 rows; Retry-After until 00:00 UTC). Honor the Retry-After response header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"ApiKey":[]}],"summary":"List congressional disclosures","tags":["Congress"]}},"/v1/trades/historical":{"get":{"description":"Unbounded lookback over the same trades as /v1/trades/latest. Requires at least one of: ticker filter, starting_after cursor, or a date range under 30 days. Otherwise returns 400 filter_required. since is silently clamped to the tier lookback window (professional: 1 year, enterprise: unlimited).","operationId":"SignalsController_listHistoricalTrades","parameters":[{"name":"X-Request-ID","in":"header","description":"Optional client-supplied trace id. Echoed in response headers and error envelopes.","required":false,"schema":{"type":"string"}},{"name":"FilingIQ-Version","in":"header","description":"Pin the response shape to a specific FilingIQ-Version (YYYY-MM-DD). Documentation-only in v1; routing on this header lands with v2.","required":false,"schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Items per page. 1 to 100. Default 25.","schema":{"example":25,"type":"number"}},{"name":"starting_after","required":false,"in":"query","description":"Opaque cursor. Every row appears on exactly one page.","schema":{"type":"string"}},{"name":"ticker","required":false,"in":"query","description":"Comma-separated tickers. At most 20.","schema":{"type":"string"}},{"name":"min_score","required":false,"in":"query","deprecated":true,"description":"Discontinued on 2026-10-14. Accepted and ignored.","schema":{"type":"number"}},{"name":"date_from","required":false,"in":"query","description":"ISO 8601 date (YYYY-MM-DD). Pair with date_to (range <= 30 days).","schema":{"type":"string"}},{"name":"date_to","required":false,"in":"query","description":"ISO 8601 date.","schema":{"type":"string"}},{"name":"since","required":false,"in":"query","description":"ISO 8601 timestamp or Unix seconds. Silently clamped to tier window.","schema":{"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Comma-separated expansions. latency adds the processing timeline of each trade.","schema":{"type":"string"}}],"responses":{"200":{"description":"List of trades.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","description":"Always list.","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Trade"}},"has_more":{"type":"boolean","description":"True when another page follows."},"next_cursor":{"type":["string","null"],"description":"Pass as starting_after to fetch the next page. Null on the last page."}}}}}},"400":{"description":"filter_required - must supply ticker, cursor, or narrow date range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Authentication failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate-limited. error.code says which limit: too_many_requests (the per-minute limit of this API key, Retry-After of a second or two), daily_request_quota_exhausted (the daily request quota of the account, 10,000 requests per UTC day on Professional, shared by all its keys; Retry-After until 00:00 UTC) or rows_quota_exhausted (the daily row budget of the account, 1,000,000 rows; Retry-After until 00:00 UTC). Honor the Retry-After response header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"ApiKey":[]}],"summary":"Query historical trades (mandatory filter)","tags":["Trades"]}},"/v1/companies/{ticker}":{"get":{"description":"Returns the company resource for the given ticker symbol. Case-insensitive.","operationId":"CompaniesController_getByTicker","parameters":[{"name":"ticker","required":true,"in":"path","description":"Stock ticker, case-insensitive, e.g. NVDA.","schema":{"type":"string"}},{"name":"expand","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Company resource."},"404":{"description":"company_not_found."}},"security":[{"ApiKey":[]}],"summary":"Fetch a single company by ticker","tags":["Companies"]}},"/v1/companies/{ticker}/insiders":{"get":{"description":"Returns the deduplicated insider roster for the given ticker.","operationId":"CompaniesController_getInsiders","parameters":[{"name":"ticker","required":true,"in":"path","description":"Stock ticker.","schema":{"type":"string"}},{"name":"starting_after","required":false,"in":"query","description":"Opaque cursor. Every row appears on exactly one page.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"example":25,"type":"number"}}],"responses":{"200":{"description":"Insider list envelope."}},"security":[{"ApiKey":[]}],"summary":"List insiders for a company","tags":["Companies"]}},"/v1/companies/{ticker}/trades":{"get":{"description":"The most recent Form 4 open-market purchases and sales at this company, newest filing first, last 30 days. Same items as /v1/trades/latest filtered to this ticker.","operationId":"CompaniesController_listTrades","parameters":[{"name":"ticker","required":true,"in":"path","description":"Stock ticker.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"example":25,"type":"number"}},{"name":"starting_after","required":false,"in":"query","description":"Opaque cursor. Every row appears on exactly one page.","schema":{"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Comma-separated expansions: filer, company.","schema":{"type":"string"}}],"responses":{"200":{"description":"List of trades.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","description":"Always list.","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Trade"}},"has_more":{"type":"boolean","description":"True when another page follows."},"next_cursor":{"type":["string","null"],"description":"Pass as starting_after to fetch the next page. Null on the last page."}}}}}}},"security":[{"ApiKey":[]}],"summary":"List trades for a company","tags":["Companies"]}},"/v1/insiders/{identifier}":{"get":{"description":"Returns the insider record and their affiliated companies.","operationId":"InsidersController_getByIdentifier","parameters":[{"name":"identifier","required":true,"in":"path","description":"Internal insider identifier.","schema":{"type":"string"}},{"name":"expand","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Insider resource."},"404":{"description":"insider_not_found."}},"security":[{"ApiKey":[]}],"summary":"Fetch a single insider","tags":["Insiders"]}},"/v1/insiders/{identifier}/history":{"get":{"description":"Cursor-paginated trade history. since is silently clamped to the tier lookback window; the Warning header says when clamping occurred. Sales that only paid the tax due on vesting shares (sell to cover) and purchases under an employee stock purchase plan are not listed, the same population /performance counts.","operationId":"InsidersController_getHistory","parameters":[{"name":"identifier","required":true,"in":"path","description":"Internal insider identifier.","schema":{"type":"string"}},{"name":"expand","required":false,"in":"query","schema":{"type":"string"}},{"name":"since","required":false,"in":"query","description":"ISO 8601 or Unix seconds.","schema":{"type":"string"}},{"name":"starting_after","required":false,"in":"query","description":"Opaque cursor. Every row appears on exactly one page.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"example":25,"type":"number"}}],"responses":{"200":{"description":"Trade history envelope.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","description":"Always list.","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/InsiderTrade"}},"has_more":{"type":"boolean","description":"True when another page follows."},"next_cursor":{"type":["string","null"],"description":"Pass as starting_after to fetch the next page. Null on the last page."}}}}}},"400":{"description":"invalid_date_format."}},"security":[{"ApiKey":[]}],"summary":"List trade history for an insider","tags":["Insiders"]}},"/v1/insiders/{identifier}/performance":{"get":{"description":"Counts of the insider's disclosed trades in the window. total_trades, buy_count and sell_count do not count sales that only paid the tax due on vesting shares (sell to cover) or purchases under an employee stock purchase plan. win_rate, avg_return_30d and avg_return_90d are discontinued and always null.","operationId":"InsidersController_getPerformance","parameters":[{"name":"identifier","required":true,"in":"path","description":"Internal insider identifier.","schema":{"type":"string"}},{"name":"since","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Insider trade counts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsiderTradeCounts"}}}}},"security":[{"ApiKey":[]}],"summary":"Trade counts for an insider","tags":["Insiders"]}},"/v1/alerts":{"post":{"description":"Stores an alert preference with an optional ticker filter and an event-type filter.","operationId":"AlertsController_create","parameters":[{"name":"Idempotency-Key","in":"header","description":"Idempotency token, max 255 chars. Replays return the cached response byte-for-byte for 24h, scoped per API key. Required for safe retries of POST.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ticker":{"type":["string","null"],"description":"Optional ticker filter (uppercased)."},"score_threshold":{"type":["integer","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Accepted and ignored."},"event_types":{"type":"array","items":{"type":"string"},"description":"Defaults to ['signal.created']. signal.high_conviction and signal.score_changed are refused with 400 event_type_discontinued."},"channel":{"type":"string","description":"Delivery channel, defaults to 'webhook'."},"channel_config":{"type":["object","null"],"additionalProperties":true,"description":"Channel-specific configuration."}}}}}},"responses":{"201":{"description":"Alert created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Alert"}}}},"400":{"description":"event_type_discontinued or another invalid field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"ApiKey":[]}],"summary":"Create an alert","tags":["Alerts"]},"get":{"description":"Returns alerts owned by the calling API key.","operationId":"AlertsController_list","parameters":[{"name":"Idempotency-Key","in":"header","description":"Idempotency token, max 255 chars. Replays return the cached response byte-for-byte for 24h, scoped per API key. Required for safe retries of POST.","required":false,"schema":{"type":"string"}},{"name":"starting_after","required":false,"in":"query","description":"Opaque cursor. Every row appears on exactly one page.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"example":25,"type":"number"}}],"responses":{"200":{"description":"Alert list envelope.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","description":"Always list.","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Alert"}},"has_more":{"type":"boolean","description":"True when another page follows."},"next_cursor":{"type":["string","null"],"description":"Pass as starting_after to fetch the next page. Null on the last page."}}}}}}},"security":[{"ApiKey":[]}],"summary":"List alerts","tags":["Alerts"]}},"/v1/alerts/{id}":{"delete":{"description":"Soft-revokes the alert. Idempotent (re-deletion returns 404).","operationId":"AlertsController_delete","parameters":[{"name":"Idempotency-Key","in":"header","description":"Idempotency token, max 255 chars. Replays return the cached response byte-for-byte for 24h, scoped per API key. Required for safe retries of POST.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Alert id (with or without al_ prefix).","schema":{"type":"string"}}],"responses":{"204":{"description":"Alert deleted."},"404":{"description":"alert_not_found."}},"security":[{"ApiKey":[]}],"summary":"Delete an alert","tags":["Alerts"]}},"/v1/webhook_endpoints":{"post":{"description":"Creates a new webhook endpoint subscription. The plaintext signing secret is returned ONCE in the response and never again. Save it server-side immediately. signal.created and congress.trade_filed fire for every filing, so an endpoint subscribed to either needs a filter: ticker_filter, watchlist_only, or for Form 4 events min_trade_value_usd. Without one the request is refused with 400 filter_required. min_score no longer counts as a filter.","operationId":"WebhookEndpointsController_create","parameters":[{"name":"Idempotency-Key","in":"header","description":"Idempotency token (max 255 chars) for POST/PATCH/DELETE replays. Scoped per API key, 24h cache.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["event_types"],"properties":{"url":{"type":"string","description":"Required for generic/discord/slack. Omitted/empty for telegram."},"name":{"type":["string","null"]},"event_types":{"type":"array","items":{"type":"string"},"description":"Event names to deliver: signal.created (a new Form 4 trade), signal.cluster_detected (several insiders at one company), congress.trade_filed. signal.high_conviction and signal.score_changed are discontinued: a new subscription to them is refused with 400 event_type_discontinued.","example":["signal.created"]},"ticker_filter":{"type":["array","null"],"items":{"type":"string"},"description":"Only events for these tickers."},"watchlist_only":{"type":"boolean","description":"Only trades in companies on your watchlist and by insiders you follow. Default false."},"min_trade_value_usd":{"type":["number","null"],"minimum":0,"maximum":1000000000,"description":"Only Form 4 trades worth at least this many dollars. 0 or null for no minimum."},"min_score":{"type":["integer","null"],"minimum":0,"maximum":100,"deprecated":true,"description":"Discontinued on 2026-10-14. Accepted and ignored."},"min_score_overrides":{"type":["object","null"],"deprecated":true,"additionalProperties":{"type":"integer","minimum":0,"maximum":100},"description":"Discontinued on 2026-10-14. Accepted and ignored."},"provider":{"type":"string","enum":["generic","discord","slack","telegram"],"description":"Routing target. Defaults to 'generic'."}}}}}},"responses":{"201":{"description":"Endpoint created; secret returned exactly once.","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["webhook_endpoint"]},"endpoint":{"$ref":"#/components/schemas/WebhookEndpoint"},"secret":{"type":"string","description":"Plaintext signing secret, shown only in this response."}}}}}},"400":{"description":"invalid_field, filter_required, event_type_discontinued, event_type_not_supported_for_provider, verification_failed and the other codes listed at docs.filingiq.io/errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"ApiKey":[]}],"summary":"Create a webhook endpoint","tags":["Webhooks"]},"get":{"description":"Returns endpoints owned by the calling API key.","operationId":"WebhookEndpointsController_list","parameters":[{"name":"Idempotency-Key","in":"header","description":"Idempotency token (max 255 chars) for POST/PATCH/DELETE replays. Scoped per API key, 24h cache.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Endpoint list.","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}}}}}}}},"security":[{"ApiKey":[]}],"summary":"List webhook endpoints","tags":["Webhooks"]}},"/v1/webhook_endpoints/{id}":{"get":{"operationId":"WebhookEndpointsController_getOne","parameters":[{"name":"Idempotency-Key","in":"header","description":"Idempotency token (max 255 chars) for POST/PATCH/DELETE replays. Scoped per API key, 24h cache.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Endpoint id (with or without whe_ prefix).","schema":{"type":"string"}}],"responses":{"200":{"description":"Endpoint resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"404":{"description":"webhook_endpoint_not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"ApiKey":[]}],"summary":"Fetch one webhook endpoint","tags":["Webhooks"]},"patch":{"description":"Partial update; only the fields supplied are changed. Adding signal.high_conviction or signal.score_changed is refused with 400 event_type_discontinued; an endpoint that already has one keeps it. signal.created and congress.trade_filed fire for every filing, so an endpoint subscribed to either needs a filter: ticker_filter, watchlist_only, or for Form 4 events min_trade_value_usd. Without one the request is refused with 400 filter_required. min_score no longer counts as a filter.","operationId":"WebhookEndpointsController_update","parameters":[{"name":"Idempotency-Key","in":"header","description":"Idempotency token (max 255 chars) for POST/PATCH/DELETE replays. Scoped per API key, 24h cache.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Endpoint id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":["string","null"]},"event_types":{"type":"array","items":{"type":"string"},"description":"Event names to deliver: signal.created (a new Form 4 trade), signal.cluster_detected (several insiders at one company), congress.trade_filed. signal.high_conviction and signal.score_changed are discontinued: a new subscription to them is refused with 400 event_type_discontinued."},"ticker_filter":{"type":["array","null"],"items":{"type":"string"},"description":"Only events for these tickers."},"watchlist_only":{"type":"boolean","description":"Only trades in companies on your watchlist and by insiders you follow. Default false."},"min_trade_value_usd":{"type":["number","null"],"minimum":0,"maximum":1000000000,"description":"Only Form 4 trades worth at least this many dollars. 0 or null for no minimum."},"min_score":{"type":["integer","null"],"minimum":0,"maximum":100,"deprecated":true,"description":"Discontinued on 2026-10-14. Accepted and ignored."},"min_score_overrides":{"type":["object","null"],"deprecated":true,"additionalProperties":{"type":"integer","minimum":0,"maximum":100},"description":"Discontinued on 2026-10-14. Accepted and ignored."}}}}}},"responses":{"200":{"description":"Updated endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"invalid_field, filter_required, event_type_discontinued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"ApiKey":[]}],"summary":"Update a webhook endpoint","tags":["Webhooks"]},"delete":{"operationId":"WebhookEndpointsController_remove","parameters":[{"name":"Idempotency-Key","in":"header","description":"Idempotency token (max 255 chars) for POST/PATCH/DELETE replays. Scoped per API key, 24h cache.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Endpoint id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Endpoint deleted."}},"security":[{"ApiKey":[]}],"summary":"Delete a webhook endpoint","tags":["Webhooks"]}},"/v1/webhook_endpoints/{id}/secrets/rotate":{"post":{"description":"Generates a new signing secret. The previous secret remains valid for a 24-hour overlap window so receivers can verify against either while migrating. The new plaintext secret is returned once.","operationId":"WebhookEndpointsController_rotateSecret","parameters":[{"name":"Idempotency-Key","in":"header","description":"Idempotency token (max 255 chars) for POST/PATCH/DELETE replays. Scoped per API key, 24h cache.","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Endpoint id.","schema":{"type":"string"}}],"responses":{"200":{"description":"New secret issued; previous secret remains valid for 24h.","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["webhook_endpoint"]},"endpoint":{"$ref":"#/components/schemas/WebhookEndpoint"},"secret":{"type":"string","description":"Plaintext signing secret, shown only in this response."}}}}}}},"security":[{"ApiKey":[]}],"summary":"Rotate the signing secret for an endpoint","tags":["Webhooks"]}},"/v1/webhook_endpoints/{id}/deliveries":{"get":{"description":"Returns the latest 100 dispatch attempts with status, latency, and response excerpt.","operationId":"WebhookDeliveriesController_list","parameters":[{"name":"id","required":true,"in":"path","description":"Endpoint id.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"example":100,"type":"number"}}],"responses":{"200":{"description":"Delivery list envelope."}},"security":[{"ApiKey":[]}],"summary":"List recent deliveries for an endpoint","tags":["Webhooks"]}},"/v1/webhook_endpoints/{id}/deliveries/{deliveryId}/replay":{"post":{"description":"Enqueues a new delivery attempt for the same payload. Returns 202 immediately; check the deliveries log for the result.","operationId":"WebhookDeliveriesController_replay","parameters":[{"name":"id","required":true,"in":"path","description":"Endpoint id.","schema":{"type":"string"}},{"name":"deliveryId","required":true,"in":"path","description":"Delivery id (with or without whd_ prefix).","schema":{"type":"string"}}],"responses":{"202":{"description":"Replay queued."}},"security":[{"ApiKey":[]}],"summary":"Replay a single delivery","tags":["Webhooks"]}},"/v1/webhook_endpoints/{id}/deliveries/replay_failed":{"post":{"description":"Re-enqueues every distinct failed event since the supplied ISO 8601 timestamp. De-duped by event_id so an 8-attempt retry sequence only re-enqueues once.","operationId":"WebhookDeliveriesController_replayFailed","parameters":[{"name":"id","required":true,"in":"path","description":"Endpoint id.","schema":{"type":"string"}},{"name":"since","required":true,"in":"query","description":"ISO 8601 timestamp.","schema":{"type":"string"}}],"responses":{"202":{"description":"Replays queued."},"400":{"description":"invalid_field: since is required and must be ISO 8601."}},"security":[{"ApiKey":[]}],"summary":"Bulk replay failed deliveries since a timestamp","tags":["Webhooks"]}}},"info":{"title":"FilingIQ API","description":"Cleaned SEC insider filing data: Form 4 trades by corporate insiders and periodic transaction reports of Members of Congress, as filed.\n\nCursor-paginated lists, idempotent writes, HMAC-signed webhooks. Every webhook payload carries latency_ms, the time from the SEC publication of a filing until FilingIQ had processed it.\n\nFields and parameters discontinued on 2026-10-14 stay in the contract: such a field is always null and marked deprecated, such a parameter is accepted and ignored, and the two discontinued webhook event types accept no new subscriptions. Endpoints from before that date keep answering as before; this reference lists only the current ones.\n\nAuthentication: Bearer token. Issue keys at /settings/api on the FilingIQ dashboard. API access requires the Professional or Enterprise tier.\n\nLimits on Professional: 100 requests a minute per API key, and 10,000 requests per UTC day per account (all its keys together), resetting at 00:00 UTC; a daily row budget of 1,000,000 rows per account guards against abuse. Enterprise: 600 requests a minute and no daily quota unless the agreement sets one. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-RateLimit-Daily-Limit, X-RateLimit-Daily-Remaining, X-RateLimit-Daily-Reset and X-RateLimit-Rows-Remaining; a 429 says which limit was hit in error.code and when to retry in Retry-After.","version":"1.0","contact":{"name":"FilingIQ Support","url":"https://filingiq.io","email":"support@filingiq.io"},"license":{"name":"Proprietary","url":"https://filingiq.io/terms"},"termsOfService":"https://filingiq.io/api-terms"},"tags":[{"name":"Trades","description":"Form 4 open-market purchases and sales by corporate insiders, as filed: the latest, a historical lookup, and the trades at companies where two or more insiders bought within 90 days."},{"name":"Congress","description":"Periodic transaction reports of Members of Congress."},{"name":"Companies","description":"Company profile, insider roster and trades per ticker."},{"name":"Insiders","description":"Trade history and trade counts per insider."},{"name":"Alerts","description":"Stored alert preferences with a ticker and an event-type filter."},{"name":"Webhooks","description":"HMAC-signed event delivery to your endpoints, with a delivery log and replay."}],"servers":[{"url":"https://api.filingiq.io","description":"Production"}],"components":{"securitySchemes":{"ApiKey":{"scheme":"bearer","bearerFormat":"fiq_live_...","type":"http","description":"API key issued from the FilingIQ dashboard /settings/api. Prefix `fiq_live_` for production, `fiq_test_` for sandbox."}},"schemas":{"Trade":{"type":"object","description":"One Form 4 transaction as filed: an open-market purchase (P) or sale (S) by an insider. The object value and the sig_ id prefix are identifiers kept from before 2026-10-14.","properties":{"id":{"type":"string","description":"Trade id, prefixed sig_.","example":"sig_3f9c2a1e"},"object":{"type":"string","description":"Resource type.","enum":["signal"]},"ticker":{"type":["string","null"],"description":"Issuer ticker as filed."},"issuer_name":{"type":["string","null"]},"insider_name":{"type":["string","null"]},"insider_title":{"type":["string","null"],"description":"The reporting person's title or relationship, as filed."},"transaction_code":{"type":"string","description":"SEC transaction code: P open-market purchase, S open-market sale."},"shares":{"type":["number","null"],"description":"Number of shares in the transaction."},"price_per_share":{"type":["number","null"],"description":"Price per share as filed, in USD."},"composite_score":{"type":["number","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null."},"trade_classification":{"type":["string","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null."},"filing_date":{"type":"string","format":"date","description":"Date the Form 4 was filed (YYYY-MM-DD)."},"transaction_date":{"type":"string","format":"date","description":"Date of the transaction (YYYY-MM-DD)."},"latency":{"type":["object","null"],"description":"Only with expand=latency. Null when FilingIQ has no pipeline record for the trade (for example a backfilled filing).","properties":{"sec_to_scored_ms":{"type":["integer","null"],"description":"Milliseconds from the SEC publication of the filing until FilingIQ had processed it."},"stages":{"type":"array","items":{"type":"object","properties":{"stage":{"type":"string","description":"Pipeline stage name."},"occurred_at":{"type":"string","description":"ISO 8601 timestamp, UTC.","format":"date-time"},"ms_from_start":{"type":["integer","null"]}}}}}},"company":{"type":["object","null"],"description":"Only with expand=company.","additionalProperties":true},"filer":{"type":["object","null"],"description":"Only on /v1/companies/{ticker}/trades with expand=filer.","properties":{"id":{"type":"string"},"name":{"type":"string"},"title":{"type":["string","null"]}}}}},"CongressTrade":{"type":"object","description":"One transaction from a periodic transaction report of a Member of Congress.","properties":{"id":{"type":"string","description":"Disclosure id, prefixed cgt_."},"object":{"type":"string","description":"Resource type.","enum":["congress_trade"]},"ticker":{"type":["string","null"]},"member_name":{"type":"string"},"chamber":{"type":["string","null"],"description":"house or senate."},"party":{"type":["string","null"],"description":"Null when FilingIQ does not have it."},"transaction_type":{"type":["string","null"],"description":"As disclosed, for example Purchase or Sale."},"amount_range":{"type":["string","null"],"description":"The disclosed value range, for example $1,001 - $15,000. Disclosures give a range, not an amount."},"transaction_date":{"type":["string","null"],"format":"date"},"filing_date":{"type":"string","format":"date","description":"Date the disclosure was filed (YYYY-MM-DD)."},"cps_score":{"type":["number","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null."}}},"InsiderTrade":{"type":"object","description":"One Form 4 transaction in an insider's history.","properties":{"id":{"type":"string","description":"Transaction id, prefixed tx_."},"object":{"type":"string","description":"Resource type.","enum":["trade"]},"ticker":{"type":["string","null"]},"issuer_name":{"type":["string","null"]},"transaction_code":{"type":"string","description":"SEC transaction code."},"shares":{"type":["number","null"]},"price_per_share":{"type":["number","null"]},"composite_score":{"type":["number","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null."},"filing_date":{"type":"string","format":"date","description":"Date the Form 4 was filed (YYYY-MM-DD)."},"transaction_date":{"type":"string","format":"date","description":"Date of the transaction (YYYY-MM-DD)."},"latency":{"type":["object","null"],"description":"Reserved. Always null on this endpoint."},"company":{"type":["object","null"],"description":"Only with expand=company.","properties":{"ticker":{"type":["string","null"]},"name":{"type":["string","null"]}}}}},"InsiderTradeCounts":{"type":"object","description":"Counts over the insider's disclosed trades in the (tier-clamped) window.","properties":{"object":{"type":"string","description":"Resource type.","enum":["insider_performance"]},"insider_id":{"type":"string","description":"Insider id, prefixed ins_."},"total_trades":{"type":"integer"},"buy_count":{"type":"integer","description":"Open-market purchases (code P)."},"sell_count":{"type":"integer","description":"Open-market sales (code S)."},"win_rate":{"type":["number","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null."},"avg_return_30d":{"type":["number","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null."},"avg_return_90d":{"type":["number","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null."},"window_start":{"type":["string","null"],"description":"ISO 8601 start of the window, null when unbounded.","format":"date-time"}}},"Alert":{"type":"object","properties":{"id":{"type":"string","description":"Alert id, prefixed al_."},"object":{"type":"string","description":"Resource type.","enum":["alert"]},"ticker":{"type":["string","null"],"description":"Ticker filter, null for all tickers."},"score_threshold":{"type":["integer","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null."},"event_types":{"type":"array","items":{"type":"string"}},"channel":{"type":"string"},"channel_config":{"type":["object","null"],"additionalProperties":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"WebhookEndpoint":{"type":"object","properties":{"object":{"type":"string","description":"Resource type.","enum":["webhook_endpoint"]},"id":{"type":"string"},"user_id":{"type":"string"},"name":{"type":["string","null"]},"url":{"type":"string","description":"Delivery URL. tg://internal for a Telegram endpoint."},"event_types":{"type":"array","items":{"type":"string"}},"ticker_filter":{"type":["array","null"],"items":{"type":"string"}},"min_score":{"type":["integer","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null."},"min_score_overrides":{"type":["object","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null.","additionalProperties":{"type":"integer"}},"watchlist_only":{"type":"boolean","description":"Only trades in companies on the owner's watchlist and by insiders the owner follows."},"min_trade_value_usd":{"type":["number","null"],"description":"Only Form 4 trades worth at least this many dollars. Null for no minimum."},"status":{"type":"string","enum":["pending_verification","active","failing","disabled"]},"provider":{"type":"string","enum":["generic","discord","slack","telegram"]},"created_at":{"type":"string","format":"date-time"},"last_success_at":{"type":["string","null"],"format":"date-time"},"last_failure_at":{"type":["string","null"],"format":"date-time"},"consecutive_failure_count":{"type":"integer"},"last_error":{"type":["string","null"]},"secret_prev_expires_at":{"type":["string","null"],"description":"End of the 24-hour overlap after a secret rotation.","format":"date-time"}}},"WebhookEvent":{"type":"object","description":"Body of a generic webhook delivery, signed with the FilingIQ-Signature header. Discord, Slack and Telegram endpoints receive the same facts in the platform's own message format.","required":["event_id","event_type","ticker","company","signal_score","score_kind","signal_type","insider_count","market_cap","timestamp_sec","latency_ms","summary","url"],"properties":{"event_id":{"type":"string","description":"Unique per event. Use it to drop duplicates."},"event_type":{"type":"string","description":"The event name.","enum":["signal.created","signal.cluster_detected","congress.trade_filed","endpoint.verification","signal.high_conviction","signal.score_changed"]},"ticker":{"type":["string","null"]},"company":{"type":["string","null"]},"signal_score":{"type":["number","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null."},"score_kind":{"type":["string","null"],"deprecated":true,"description":"Discontinued on 2026-10-14. Always null."},"signal_type":{"type":["string","null"],"description":"What was filed. Cluster Sale is new since 2026-10-14: a cluster event now covers sales as well as purchases.","enum":["Open Market Buy","Open Market Sale","Cluster Buy","Cluster Sale","Congress Trade","Derivative","Insider Filing"]},"insider_count":{"type":["integer","null"],"description":"1 for a single trade; for a cluster, the number of different insiders on the same side within 90 days."},"market_cap":{"type":["string","null"],"description":"Issuer market capitalization at delivery time, for example 2.8T."},"timestamp_sec":{"type":["string","null"],"description":"ISO 8601 time of the SEC publication of the filing."},"latency_ms":{"type":["integer","null"],"description":"Milliseconds from the SEC publication until FilingIQ had processed the filing."},"summary":{"type":["string","null"],"description":"One plain sentence, for example: 1 director bought Acme Corp shares."},"url":{"type":["string","null"],"description":"Link to the filing on app.filingiq.io."}}},"ApiError":{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","not_found_error","api_error"]},"code":{"type":"string","description":"Stable code to branch on.","example":"endpoint_discontinued"},"message":{"type":"string","description":"Readable explanation."},"param":{"type":["string","null"],"description":"The request field the error is about, when there is one."},"doc_url":{"type":"string","description":"Page with the steps that fix the error."},"request_id":{"type":"string"}}}}}}},"webhooks":{"signal.created":{"post":{"summary":"A new Form 4 trade","description":"Sent for every eligible open-market purchase or sale (Form 4, code P or S) that passes the endpoint's filters: ticker_filter, watchlist_only, min_trade_value_usd. An endpoint without one of those filters is refused at creation (filter_required).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"2XX":{"description":"Acknowledge with any 2xx status within 10 seconds. Anything else is retried, up to 8 attempts."}}}},"signal.cluster_detected":{"post":{"summary":"Several insiders at one company","description":"Sent when two or more different insiders of the same company traded on the same side within 90 days. signal_type is Cluster Buy for purchases and Cluster Sale for sales; insider_count is the number of insiders.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"2XX":{"description":"Acknowledge with any 2xx status within 10 seconds. Anything else is retried, up to 8 attempts."}}}},"congress.trade_filed":{"post":{"summary":"A new congressional disclosure","description":"Sent for a newly ingested periodic transaction report line of a Member of Congress. Not available on Telegram endpoints.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"2XX":{"description":"Acknowledge with any 2xx status within 10 seconds. Anything else is retried, up to 8 attempts."}}}},"signal.high_conviction":{"post":{"summary":"Discontinued","description":"Discontinued on 2026-10-14 and no longer sent. New subscriptions are refused with 400 event_type_discontinued. Existing subscriptions are kept and receive nothing for this type.","deprecated":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"2XX":{"description":"Acknowledge with any 2xx status within 10 seconds. Anything else is retried, up to 8 attempts."}}}},"signal.score_changed":{"post":{"summary":"Discontinued","description":"Discontinued on 2026-10-14 and no longer sent. New subscriptions are refused with 400 event_type_discontinued. Existing subscriptions are kept and receive nothing for this type.","deprecated":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"2XX":{"description":"Acknowledge with any 2xx status within 10 seconds. Anything else is retried, up to 8 attempts."}}}}}}