Subscriptions and filters

A subscription is a named filter plus an optional webhook URL. Each new filing that FilingStream detects and that matches the filter is delivered to the subscription (at least once; see Limits for what is not promised).

{
  "name": "Merger language in 8-Ks",
  "filter": {
    "ciks": ["0000320193"],
    "tickers": ["TSLA"],
    "forms": ["8-K"],
    "include_amendments": true,
    "keywords": ["merger agreement", "going concern"]
  },
  "webhook_url": "https://example.com/hooks/filingstream"
}

Filter fields

FieldMeaning
ciksSEC Central Index Keys (padded to 10 digits automatically).
tickersTicker symbols (case-insensitive). A filing matches if any company on it has one of the tickers.
formsForm types such as 8-K, 10-Q, 4. Case-insensitive.
include_amendmentsWith 8-K in forms, also match 8-K/A. Default false.
keywordsPhrases searched in the filing text (see below).

ciks and tickers together are alternatives: a filing matches if it involves any listed company. Within each dimension values are alternatives (OR); different dimensions are combined with AND. Within keywords a filing matches if any phrase is found, and the phrases that hit are returned in matched_keywords.

Limits: at most 100 companies (ciks plus tickers) and 50 forms per filter; at most 20 keywords of 2–100 characters each. Plans can set lower limits, including how many keywords a filter may have. Filters with no company, form or keyword (every filing, a "firehose") are only available on plans that include it.

An invalid filter is rejected with HTTP 422 invalid_filter.

How keyword matching works

  • Case-insensitive; runs of whitespace count as one space.
  • A phrase must start and end at a word boundary: merger matches Merger Agreement but not submerger or mergers.
  • The searched text is: company names, the form type, the 8-K item numbers, the text of the primary document, and the text of up to three exhibits (see next section).
  • A phrase never matches across the boundary between two documents.

Exhibit coverage and searched_documents

Many events live in exhibits, not in the main document (an 8-K's press release is usually Exhibit 99.1; a merger agreement is often Exhibit 2.1). FilingStream therefore searches:

  • the filing's primary document, and
  • up to three exhibits of type EX-2*, EX-10* or EX-99* (these defaults are operator-configurable), in the order the filing lists them.

Only .htm, .html, .txt and .xml documents are read; PDFs and images are not searched. Documents above the size limit are skipped, and very long documents are cut: the text searched per filing is capped, so a phrase buried in the tail of a huge document may not be found. Exhibits that cannot be fetched in time are skipped and the event is still delivered.

Every delivered filing tells you exactly what was searched in searched_documents (primary document first):

"searched_documents": [
  {"sequence": 1, "filename": "aapl-20260130.htm", "type": "8-K", "url": "https://www.sec.gov/Archives/edgar/data/…"},
  {"sequence": 2, "filename": "ex99-1.htm", "type": "EX-99.1", "url": "https://www.sec.gov/Archives/edgar/data/…", "truncated": true}
]

truncated: true means only the beginning of that document was searched. The field is absent when no document text could be fetched (for example when the filing index was unavailable; then enrichment is partial and only the company name, form type and items were searched).

Managing subscriptions

  • GET /v1/subscriptions, GET/PATCH/DELETE /v1/subscriptions/{id}.
  • PATCH can change name, filter, webhook_url and status (active or disabled).
  • POST /v1/subscriptions/{id}/rotate-secret creates a new webhook secret; for an overlap period (default 24 hours, up to 72) deliveries carry signatures for both secrets so you can switch without downtime.
  • A subscription can be disabled automatically after 20 consecutive failed deliveries or an HTTP 410 from your endpoint; you are emailed and can re-enable it.