Prodo API Dashboard

This FastAPI service powers focus scoring and authentication flows for Prodo. Use the endpoint reference below to test each route quickly.

Tip: Interactive docs are also available at /docs.

Live /check-focus Webcam Demo

Allow camera access, then capture one frame or run auto-checks on a timer.

Status
WAITING
focus_score
-
rolling_focus_score
-
face_presence
-
head_pose
-
gaze
-
eyes_open
-
Waiting for first response...
GET

/

Serves this HTML dashboard page.

Response: HTML file (index.html)
POST

/check-focus

Analyzes an uploaded image frame and returns focus status and score signals.

Form-data: frame: image file (required) session_id: string (optional) include_debug: bool (optional) prefer_mediapipe: bool (optional)
POST

/auth/register

Registers a user (placeholder implementation).

JSON: { "username": "string", "email": "string", "password": "string" }
POST

/auth/login

Logs in a user (placeholder implementation).

JSON: { "email": "string", "password": "string" }
GET

/users/me

Returns mock current-user stats and profile values.

Response includes username, email, points, and balance.
POST

/users/sync

Syncs locally-earned points and the current multiplier.

JSON: { "points_earned_since_last_sync": 10, "current_multiplier": 1.2 }