TopicSummaryRequest
Summarize a set of articles. Provide either a template or custom instructions.
- anonymousType: string
_id The anonymous visitor.
- flType: array string[]
Fields to return for each source article.
- forceType: boolean
_refresh Regenerate and overwrite the cached summary instead of returning a cached result.
- formatType: string enum
Output format of the generated summary.
values- markdown
- html
- json
- fqType: string
Selects the articles to summarize (Elasticsearch query-string syntax (Lucene)). Every matching catalog article — up to
max_articles— is included in one summary.Examples:
"section:\"markets\""— the markets section"tags:\"interest rates\""— a topic"section:\"markets\" AND published_at:[NOW-7DAYS TO NOW]"— this week's articles (newsletter)"rating:[4 TO *]"— numeric range
- instructionsType: string
Custom instructions for the summary (tone, length, structure…). Provide this or
template. - maxType: integer
_articles min:1max:200Maximum number of matching articles to include in the summary.
- relevanceType: string | null
_instruction Per-article relevance filter: each candidate is kept only if it satisfies this (strict LLM check). e.g. "Keep only if interest-rate policy is a primary subject, not a passing mention."
- rulesType: array string[]
Rules the summary must satisfy; it is regenerated up to 3× to meet them. e.g.
["Must be under 200 words", "Each article must be cited"]. - templateType: string | null enum
A built-in summary template. Provide this or
instructions.values- newsletter
_v1 - newsvault
- urlType: string
_template Template applied to every link in the summary — use it to add click-tracking params, e.g.
https://example.com{url}?utm_source=newsletter. - userType: string
_hash Hash of
user_id/anonymous_idwith your Secret API Key — send when calling from the browser with a Publishable key. - userType: string
_id The signed-in user. Use
anonymous_idfor visitors. - userType: string
_type User segment/type, used for rate limiting.
- virtualType: array object[] …10
_articles Extra articles not in your catalog to include. Prepended before catalog articles and cited identically.
Empty object
