Skip to main content
POST
/
v2
/
chat
/
sse
Generate a response from the LinqAlpha engine via SSE
curl --request POST \
  --url https://api.linqalpha.com/v2/chat/sse \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "query": "What are the latest insights on AAPL performance?",
  "stock_ids": [
    "BBG001S5N8V8"
  ],
  "tickers": [
    "AAPL"
  ],
  "external_types": [
    "transcript",
    "filing",
    "news",
    "ir_slide"
  ]
}
'
{
"event_name": "conversation",
"data": {
"conversation_id": "123e4567-e89b-12d3-a456-426614174000"
}
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
query
string
required

A search query

Example:

"What are the latest updates on AAPL?"

external_types
string[]
required

External document types

Example:
["transcript", "filing", "news", "ir_slide"]
conversation_id
string<uuid>

Conversation id (optional)

Every user-initiated chat is grouped under a conversation. A conversation contains one or more messages generated either by the user or LinqAlpha. Use the conversation_id to track the context of previous interactions.

Example:

"123e4567-e89b-12d3-a456-426614174000"

stock_ids
string[]

Bloomberg stock IDs (optional)

Example:
["BBG001S5N8V8"]
tickers
string[]

Ticker symbols (optional)

Example:
["AAPL"]
top_k
number

Specifies the number of top search results to return. If the value exceeds 50, it will be capped at 50 The number of returned results will be less than or equal to the specified top_k value. Results are sorted by relevancy in descending order (from highest to lowest).

Example:

50

upload_period
object

Response

SSE stream response with RMS search results

Conversation event

event_name
enum<string>
required
Available options:
conversation
data
object
required

Event-specific data payload