Assistant
Send Chat Message
Send a message to the AI assistant and receive a response. Supports both streaming (SSE) and non-streaming responses.
post/api/assistant/chat
Query parameters
entityTypestring
Type of entity associated with this session (e.g., 'alert_investigation')
entityIdstring
ID of the entity associated with this session (e.g., alert's soc_id)
Request body
Response
AI assistant response messages
Example response
[
{
"id": "c3d44fb8-3bc2-46e2-a7d2-8a8983556d1a",
"role": "user",
"stop_reason": "user_request",
"stop_sequence": "end_turn",
"usage": {
"credits": 1,
"input_tokens": 5,
"output_tokens": 10
}
}
]