Skip to main content
POST
/
v1
/
rag
/
answer
Agentic LLM response
curl --request POST \
  --url https://api.ivory.finance/v1/rag/answer \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "query": "<string>",
  "company_name": "<string>",
  "cik": "<string>",
  "accession_number": "<string>",
  "transcript_doc_id": "<string>",
  "exhibit_doc_id": "<string>",
  "llm_provider": "bedrock",
  "llm_model": "deepseek.v3.2"
}
'
{
  "answer": "<string>",
  "sources": [
    {
      "accession_number": "<string>",
      "cik": "<string>",
      "ticker": "<string>",
      "company_name": "<string>",
      "form_type": "<string>",
      "filing_date": "<string>",
      "chunk_heading": "<string>",
      "score": 123,
      "filing_url": "<string>",
      "markdown_url": "<string>",
      "section_url": "<string>",
      "logo": {},
      "credibility_tier": 1,
      "credibility_label": "SEC Filing (Periodic — Audited)"
    }
  ],
  "web_sources": []
}

Documentation Index

Fetch the complete documentation index at: https://docs.ivory.finance/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Body

application/json
query
string
required
company_name
string | null
cik
string | null
accession_number
string | null
transcript_doc_id
string | null
exhibit_doc_id
string | null
llm_provider
string
default:bedrock
llm_model
string
default:deepseek.v3.2

Response

Successful Response

answer
string
required
sources
SourceDoc · object[]
required
web_sources
WebSource · object[]