Stream Query Response

Stream query response in real-time via Server-Sent Events (SSE). This endpoint is used when stream=true is passed to /query. The client connects to this endpoint after receiving the initial response with streamName to receive the AI-generated summary as it's being created. Headers: - Authorization: Bearer {api_key} - Captain API key for authentication - X-Organization-ID: Organization UUID Parameters: - request_id: The request ID from the /query call Returns: SSE stream of text chunks

Path parameters

request_idstringRequired

Response

Successful Response

Errors