Skip to main content
POST
RMS Chat (SSE - Stream)

Authorizations

X-API-KEY
string
header
required

Body

application/json
organization_id
string<uuid>
required

Organization ID

Example:

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

user_id
string
required

User ID

Example:

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

user_email
string
required

User email

Example:

"john.doe@example.com"

user_name
string
required

User name

Example:

"John Doe"

query
string
required

Search query

Example:

"What are the latest insights on AAPL performance?"

search_types
enum<string>[]
required

Types of search to perform

Available options:
rms,
external,
all
Example:
conversation_id
string<uuid>

Conversation ID for multi-turn interactions (optional)

Example:

"987e6543-e21b-32d3-c654-426614174999"

source_batch_id
string<uuid>

Source batch ID

Example:

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

source_ids
string<uuid>[]

Optional array of specific source IDs to search within. If provided, only these sources will be searched. If omitted, all sources belonging to the source_batch_id will be searched. Requires source_batch_id to be specified, and all IDs must exist within that batch.

Example:
container_ids
string[]

Container IDs to search within (optional)

Example:
document_ids
string[]

Document IDs to search within (optional)

Example:
client_api_url
string | null

Client API URL

Example:

"https://api.example.com"

per_event_size
number
default:0

Number of kb size to return per event. When set to 0, search_results will not be returned via stream, only chat_message_id will be returned. You can retrieve search_results using the chat_message_id through the references API. Setting to 0 is recommended for stream stability.

Example:

0

per_event_sleep_time
number
default:0.01

Sleep time per event

Example:

0.01

rms_types
string[]

RMS document types (customizable)

Example:
rms_sub_types
object

RMS sub-types mapping (optional)

Example:
external_types
enum<string>[]

External document types (optional, defaults to ["transcript", "filing", "news", "ir_slide"])

Available options:
transcript,
filing,
news,
ir_slide,
structured_data
Example:
stock_ids
string[]

Bloomberg stock IDs (optional)

Example:
tags
string[]

Search tags (optional)

Example:
upload_period
object

Filter documents by upload date range. At least one of start_time or end_time must be provided.

fiscal_period
object

Fiscal period filter (optional)

Example:
agentic
boolean

Whether to use agentic search

Example:

true

prerelease
object

Prerelease filters (optional)

Example:
custom_filters
object

Custom filters (optional)

Example:

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