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 examplesource:abcnews.com AND Trump. A webhook with both sources and asource: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 examplesource:abcnews.com. Every plan can do that. Do not use anoptInSources: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 withsource: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
enorde. 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.updatedwhen a source changes an article. Defaultfalse. 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
sourceTypesnever matches an article whose source is not classified (source.typeisnull).excludeSourceTypeskeeps 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 dashboard cannot set sourceTypes or excludeSourceTypes yet. Until it can, filter by source type in the query instead, for example sourceType:press_release or ticker:NVDA -sourceType:aggregator. A query needs at least one positive term, so -sourceType:aggregator alone is rejected. The sourceType: query field works on every webhook, v2 and v3.
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:NVDAtherefore 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:wireis rejected, becausewireis 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:
querysourcesexcludeSourceslanguageincludeUpdatessourceTypesandexcludeSourceTypes(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.