Skip to main content

Get Document

Retrieves a source document for display in the frontend.

NOTE: Consuming applications should NOT use this endpoint directly. Instead, they should use the sourceLink URLs returned by other endpoints (like /rag/agent-query-stream or /rag/chunks). This endpoint is documented here purely for reference purposes.

This endpoint is designed to be called when a consuming application has received a response containing a sourceLink from other endpoints (like /rag/agent-query-stream or /rag/chunks). It returns the full HTML content and metadata of the referenced document for display and highlighting in the frontend.

Supported document types:

  • SEC filings (10-K, 10-Q)
  • International SEC filings (20-F, 40-F, 6-K)
  • 8-K documents (with embedded images)
  • Earnings call transcripts
  • Proxy statements (DEF 14A, DEFM14A, DEF 14C, DEFM14C, etc.)

Note: All JSON fields use camelCase naming convention.

Query Parameters
sourceType Sourcetype REQUIRED

Type of document (10-K, 10-Q, 8-K, 20-F, 40-F, 6-K, transcript, DEF 14A, DEFM14A, DEF 14C, S-1, etc.)

Type of document (10-K, 10-Q, 8-K, 20-F, 40-F, 6-K, transcript, DEF 14A, DEFM14A, DEF 14C, S-1, etc.)

documentId Documentid REQUIRED

UUID of the document

UUID of the document

Responses
200

Successful Response

Schema OPTIONAL
htmlContent Htmlcontent

HTML content of the document

sourceType Sourcetype

Type of document (10-K, 10-Q, 8-K, transcript)

date Date OPTIONAL

Document date (filing date or transcript date)

fiscalPeriod Fiscalperiod OPTIONAL

Fiscal period of the document

ticker Ticker OPTIONAL

Company ticker symbol

companyName Companyname OPTIONAL

Name of the company

422

Validation Error

Schema OPTIONAL
detail object[] OPTIONAL
loc undefined[]
msg Message
type Error Type