Webhook Criteria

The criteria decide which articles a webhook receives. You set them in the dashboard when you create the webhook, and you can change them later with Edit. All filters you set must match: they are combined with AND.


Criteria fields

The criteria use the same names as the v2 webhook criteria. The dashboard label is shown with each field.

  • Name
    query
    Type
    string
    Description

    Dashboard: Query. A search query in the finlight query language, for example ticker:NVDA AND eventType:earnings. See The query below.

  • Name
    sources
    Type
    string[]
    Description

    Dashboard: Sources. Only articles from these source domains, for example ["www.reuters.com"]. When you set sources, only these sources are used, not the default sources. One limit: when the webhook also has a query, this field does not deliver a source that is neither a default source nor a custom source granted to you. For such a source, leave Sources empty and name the source in the query, for example source:abcnews.com AND Trump. A webhook with both sources and a source: condition in the query cannot be saved. A custom source that was not granted to you is never delivered, whatever the sources or the query name. See Which sources you can use.

  • Name
    optInSources
    Type
    string[]
    Description

    Stored for compatibility with v2 criteria. It has no effect on webhook deliveries today, and the dashboard does not show it. To receive an opt-in source, name it in the query with source:, for example source:abcnews.com. Every plan can do that. Do not use an optInSources: condition in a webhook query. It does not add the source, and it can remove articles: a webhook with this condition gets no articles from custom sources granted to you, and no articles from a source named with source: in the same query.

  • Name
    excludeSources
    Type
    string[]
    Description

    Dashboard: Exclude Sources. Never deliver articles from these source domains.

  • Name
    language
    Type
    string
    Description

    Dashboard: Language. One language code, for example en or de. When it is not set, the webhook receives English (en) only. Unlike REST v3, webhooks take a single language, not a list.

  • Name
    tickers
    Type
    string[]
    Description

    Dashboard: Tickers (enriched only). Only articles tagged with one of these companies, for example ["NVDA", "000660.KS"]. The same ticker notations as in the query work here. See Tickers & exchanges.

  • Name
    countries
    Type
    string[]
    Description

    Dashboard: Countries (enriched only). ISO 3166-1 alpha-2 codes, for example ["US", "DE"].

  • Name
    categories
    Type
    string[]
    Description

    Dashboard: Categories (enriched only). Values: markets, economy, business, politics, geopolitics, regulation, technology, energy, commodities, crypto, health, climate, security.

  • Name
    includeUpdates
    Type
    boolean
    Description

    Dashboard: Include Updates. Also deliver article.updated when a source changes an article. Default false. See Payload.

  • Name
    sourceTypes
    Type
    string[]
    Description

    v3 only. Only articles from sources of these types. See Source types below.

  • Name
    excludeSourceTypes
    Type
    string[]
    Description

    v3 only. Skip articles from sources of these types.

The webhook detail page shows the stored criteria under Criteria.


Source types

sourceTypes and excludeSourceTypes filter by the kind of source. They work the same way as on REST v3 search, on both enriched and raw v3 webhooks. The values are:

newswire, press_release, financial_media, general_media, aggregator, blog, government

  • sourceTypes never matches an article whose source is not classified (source.type is null).
  • excludeSourceTypes keeps articles whose source is not classified.
  • An unknown value is rejected when you save the webhook. The values are case-sensitive.
  • On a v2 webhook both fields are ignored.

What each type means is on Source types.


The query

The query uses the finlight query language: terms, phrases, AND, OR, NOT, parentheses and field:value filters. It supports the company and event fields too, such as role:target, eventType:mna, eventImportance:>=high and correlation groups in braces. See Companies & events.

There is one difference to REST v3. Webhook queries keep the lenient parser of v2:

  • An unknown field name is not an error. The text is searched as free text instead. A typo such as tikcer:NVDA therefore does not filter by ticker. Check your field names on Fields.
  • A known field with an unknown value is an error, and the dashboard does not save the webhook. For example, sourceType:wire is rejected, because wire is not a source type. The dashboard only says that the webhook could not be saved. To see the exact reason, run the same query as a REST search.

Here is one query used in a webhook. The same string works as the query of a REST search and of a WebSocket subscription:

Webhook criteria

{
  "query": "ticker:AMD AND eventType:mna",
  "language": "en",
  "includeUpdates": true
}

Raw webhook criteria

A raw webhook delivers articles before finlight analyses them, so it has fewer filters. It accepts only:

  • query
  • sources
  • excludeSources
  • language
  • includeUpdates
  • sourceTypes and excludeSourceTypes (v3 only)

tickers, countries and categories are not available. In the query, use text and source filters such as title:, summary: and source:. Company and event fields never match on a raw webhook, because raw articles are not analysed. Do not use sentiment: either: it is empty on article.created. See Raw webhooks.


Included blocks are separate from criteria

The blocks you add to the payload (Companies, Events) are not filters. They only decide what is in data. Choosing Events does not limit the webhook to articles with events. To filter on events, use the query, for example eventType:earnings.

On v3 webhooks, the v2 switch includeEntities has no effect. Only the included blocks count.


Plans and missing entitlements

Filters are never limited by your plan. You can filter on events or companies with any plan that has webhooks.

The blocks in the payload are. The dashboard locks a block your plan does not include and marks it "Not in your plan." A block can still be selected from before, for example after a downgrade or after a switch from v2. The webhook keeps working, and the block is simply absent from data when finlight sends the delivery.

For example, the Events block needs event access, which comes with Pro Standard and every higher plan. On a lower plan, a webhook with the query eventType:mna still receives M&A articles, but without the events key. See Plans & entitlements.