StudySync API Documentation

Welcome to the StudySync API! Below you'll find a summary of all available endpoints, grouped by feature/module. All endpoints (except authentication) require a valid JWT token via the Authorization: Bearer <token> header.


Authentication

POST /auth/login

POST /auth/signup


EduBot (AI Study Assistant)

All routes require authentication.

POST /edubot/chat

POST /edubot/flashcards

POST /edubot/quiz

Chat Sessions

Flashcards

Quizzes


Smart Notes

All routes require authentication.

POST /smartnotes/audio

POST /smartnotes/recording/start

POST /smartnotes/transcribe

POST /smartnotes/summarize

GET /smartnotes/uploads/:fileId

GET /smartnotes/transcriptions/:fileId


LearnSphere (Learning Dashboard & Recommendations)

All routes require authentication.

GET /learnsphere/dashboard?userId=...

GET /learnsphere/mastery?userId=...&subject=...

GET /learnsphere/recommendations?userId=...


User Data Management

All routes require authentication.

GET /getAllUserData/GetAllUserData?id=...

DELETE /getAllUserData/DeleteAllUserData?id=...


File Uploads

All routes require authentication.

POST /fileuploads/upload

GET /fileuploads/:fileId


Payment

POST /payment/confirm


Error Handling

All endpoints return errors in the following format on failure:

{
  "error": "Error message",
  "code": "ERROR_CODE"
}

Notes