Skip to API documentation
veripoint
Developer documentationAPI v2 + MCP
Request developer access
AI FINANCIAL RESEARCH / API REFERENCE

Ask a financial question

Send one self-contained question. Receive progress, tool results and, in AI mode, a written answer through a Server-Sent Events stream.

POST/ai/queryOfficial reference

Parameters

querybody · stringRequired

One question, up to 4,000 characters. Include the company and country; the API does not retain conversation history.

modebody · "ai" | "data"Optional

Defaults to ai. Use data for raw tool results in the final done event.

Working with this response

  • Use Accept: text/event-stream. Even data mode returns SSE, not a single JSON response.
  • In data mode, read done.data: an array of { tool, data } objects.
  • A successful query consumes an AI-query request. The underlying data tools also have separate product limits. Read X-Quota-* and Retry-After when returned.
  • Check both HTTP errors before streaming and error events after HTTP 200. A stream ending without done is incomplete.

Response

200 · text/event-stream

Illustrative SSE frames. Real requests can contain multiple tool calls and text fragments; the token counts above are placeholders.

SSE
event: status
data: {"type":"status","message":"Looking up company…"}

event: text
data: {"type":"text","content":"Example answer fragment."}

event: done
data: {"type":"done","tools_used":[],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0},"message_id":null}