API reference
Custom Chat UI.
Skip the widget. Build your own chat UI and call the query endpoint directly from any frontend or server.
Overview
The query endpoint is plain JSON over HTTPS. Call it from React, Vue, plain JS, mobile, or a server.
React example
async function ask(question: string) {
const res = await fetch(
"https://[project].supabase.co/functions/v1/query-chatbot",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
chatbot_id: "YOUR_CHATBOT_ID",
token: "YOUR_EMBED_TOKEN",
query: question,
}),
}
);
const { answer } = await res.json();
return answer;
}Streaming
Streaming responses are not yet available — the full answer arrives as a single JSON object. Show a loading state while you wait.
Branding requirement
When show_branding: true is returned (Free plan), display a "Powered by Minyut" attribution near the chat UI. Starter and above return false.