API Reference

Technical details for integrating with the Ath AI Assistant backend services.

REST Endpoints

GET /config

Returns the Supabase configuration required for the frontend to initialize the Auth client.

{
  "SUPABASE_URL": "https://xyz.supabase.co",
  "SUPABASE_ANON_KEY": "eyJhbG..."
}
GET /

Redirects to the landing page (about.html).

WebSocket Protocol

WS /ws

Main real-time communication channel for transcription and AI answers.

Client to Server

{
  "type": "manual",
  "text": "Explain quantum computing",
  "id": "123456"
}

Server to Client

{
  "type": "answer",
  "text": "Quantum computing is...",
  "questionId": "123456"
}