Chat / AI

Stream an AI response using Server-Sent Events

Requires sufficient token balance. Streams the AI response as SSE data: events. The last event is data: [DONE].

post/chat/stream

Request

  • Base URL: https://hoghogh.ai/api/v1
  • URL: https://hoghogh.ai/api/v1/chat/stream
  • Auth: HTTP bearer

Request body

messagestring required
conversationIdstring uuid
agent'general' | 'expert' | 'writer' | 'analyzer'
category'legal-research' | 'contract' | 'case-analysis' | 'general'
docContextstring

Extracted text from an uploaded document

Response

SSE stream

Changes

No recorded changes to this operation across all 1 revision of this API.