API Reference
The backend is a FastAPI application. In local development or deployed environments that keep FastAPI’s default documentation enabled, interactive schemas are typically available at /docs, /redoc, and /openapi.json.
Most product endpoints expect a bearer token issued through Supabase after the Sejong sign-in bootstrap flow.
Authentication and Onboarding
Method |
Path |
Purpose |
|---|---|---|
|
|
Validate Sejong credentials, bootstrap or look up the internal Supabase account, and return onboarding context |
|
|
Trigger welcome-email behavior |
|
|
Return onboarding metadata |
|
|
Check whether a pseudonym can be used |
|
|
Create the initial student profile |
Pulse Feed and Content
Method |
Path |
Purpose |
|---|---|---|
|
|
List feed items |
|
|
Search indexed pulses |
|
|
Fetch a single pulse |
|
|
Create a pulse |
|
|
Remove a pulse |
|
|
Toggle or record a reaction |
|
|
List comments for a pulse |
|
|
Add a comment |
|
|
Translate pulse content |
|
|
Record feed analytics or interaction events |
Chat, Advisor, Channels, and Calls
Method |
Path |
Purpose |
|---|---|---|
|
|
Submit a chat request |
|
|
Receive streaming chat responses |
|
|
Legacy advisor-compatible chat request |
|
|
Submit turn-level feedback |
|
|
Provision or bootstrap chat identity |
|
|
Trigger message notifications |
|
|
Trigger call notifications |
|
|
Create a LiveKit session token and metadata |
|
|
List channels |
|
|
Join or update channel membership |
|
|
Change membership roles |
|
|
Leave or remove membership |
|
|
Manage pinned content in a channel |
Notifications, Settings, Privacy, and Moderation
Method |
Path |
Purpose |
|---|---|---|
|
|
List notifications |
|
|
Mark one notification as read |
|
|
Mark all notifications as read |
|
|
Fetch privacy settings |
|
|
Update privacy settings |
|
|
Fetch app-level preferences |
|
|
Update app-level preferences |
|
|
List sticker packs |
|
|
Send a support request |
|
|
Submit a moderation report |
|
|
List moderation reports |
|
|
Update moderation state |
Billing
Billing routes are mounted through stitch/backend/controllers/billing_controller.py.
Method |
Path |
Purpose |
|---|---|---|
|
|
Return plan, credits, and billing status |
|
|
Create a subscription checkout |
|
|
Activate a subscription after checkout |
|
|
Cancel renewal for an active subscription |
|
|
Create a credit-pack order |
|
|
Capture a completed credit-pack order |
|
|
Record a failed checkout attempt |
|
|
Internal renewal processing job endpoint |
|
|
Billing provider webhook ingestion |
Health and Diagnostics
Method |
Path |
Purpose |
|---|---|---|
|
|
Simple root response |
|
|
API health and startup diagnostics |
|
|
Recommendation-system health snapshot |
Notes
Route coverage in this page is intentionally grouped for readability rather than generated directly from the OpenAPI schema.
For exact request and response payloads, use the live FastAPI schema from the running backend.