Developer Documentation
Integrate SageTube's AI-powered expert chat into your applications and websites.
REST API
Full control over the chat experience. Send questions, receive structured answers with citations, and manage sessions server-side.
- Single endpoint:
POST /api/public/expert/chat - Structured answers with evidence citations
- Session management via tokens
Chat Widget
Add an AI-powered chat bubble to any website with a single script tag. No backend required on your site.
- One-line embed snippet
- Customizable colors, position, and greeting
- Shadow DOM isolation — no CSS conflicts
Which should I use?
| REST API | Chat Widget | |
|---|---|---|
| Setup | API key + server-side code | One script tag |
| UI | You build it | Pre-built chat bubble |
| Customization | Full control over UI and data | Color, position, greeting |
| Backend needed | Yes (to keep API key secret) | No |
| Best for | Custom apps, bots, internal tools | Marketing sites, blogs, help pages |
Need Help?
Questions about the API or widget? Contact support or visit the Help Center.