API Reference
Hadiths
Stream AI Explanation (SSE)

Stream AI Explanation (SSE)

Streams the generative text output of MuminAI, providing real-time rendering of scholarly explanations for a hadith as it is being processed by the backend.

GEThttps://api.mumin.ink/hadiths/:id/explain-stream
🔐Auth Required

Path Parameters

ParameterTypeRequiredDescription
idintegerYesThe ID of the Hadith

Query Parameters

ParameterTypeRequiredDescription
languagestringNoLanguage code for the explanation (default: ru)

Response

Data chunks are streamed linearly via text/event-stream. MuminAI's JSON fragments are progressively repaired during generation.

data: {"content":{"short_meaning":"Faith is buil"}}

data: {"content":{"short_meaning":"Faith is built upon"}}

data: {"content":{"short_meaning":"Faith is built upon basic principles."}}

data: [DONE]