agent_context: a ready-to-feed Markdown payload that combines evidence-use instructions with grounding evidence. The examples below use curl.
1. Set Your API Key
Set your key as an environment variable:X-API-Key header.
2. Request Agent Context
For agent integrations, requestagent_context from the /query endpoint:
mode: "basic", effort: "medium", evidence: true, evidence_instructions: true, evidence_format: "rendered", and summary: true. It returns top-level evidence fields and evidence_budget for direct inspection, plus agent_context.text for direct handoff to another LLM or agent.
3. Hand It to Your Agent
A successfulagent_context response includes the default evidence fields plus one context object for your LLM or agent runtime:
agent_context.text as the context for the downstream model call, alongside the original user question:
agent_context.text as the grounded context for answer generation. It includes both the instructions for using the evidence and the evidence itself.
summary.evidence_count is the number of retrieved evidence paths used as grounding for the response. It is not a count of SEC filings; one evidence path can include multiple filing statements.
4. Default Evidence Response
If you omitinclude.agent_context, the default response includes a request_id, rendered evidence, evidence_instructions, evidence_budget, and summary.
include.evidence_instructions to false:
5. Discover Metadata Filters
UseGET /metadata-filters to inspect the supported metadata-filter fields, operators, limits, and optional categorical values.
By default, research and agentic_research attempt to infer relevant metadata filters from the natural-language query. You can also provide metadata_filters explicitly when you know exact constraints, such as sec_ticker, sec_form_type, sec_fiscal_year, or sec_item_tag. Caller-provided metadata filters are treated as constraints, and the API may add filters inferred from the query.
6. Send a Query with Metadata Filters
Useresearch or agentic_research when you pass metadata filters. basic mode rejects non-empty metadata filters.
max_evidence_tokens is uncapped when omitted; the response still includes the deterministic evidence-size estimate.