The Quizmaster REST API gives you programmatic access to all platform resources — subjects, chapters, quizzes, questions, users, and scores. Every request and response uses JSON. The API is served from a single base URL, and all routes are mounted under theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/geeky-hamster/Quizmaster/llms.txt
Use this file to discover all available pages before exploring further.
/api prefix.
Base URL
your-server with the hostname or IP address where Quizmaster is running. When running locally, this is localhost.
Available resources
The API exposes seven resource groups:| Resource | Description |
|---|---|
| Auth | Register a new account and obtain a JWT for authenticated requests |
| Users | List and delete user accounts (admin only) |
| Subjects | Create and manage top-level subject categories |
| Chapters | Create and manage chapters within subjects |
| Quizzes | Create, retrieve, and manage timed quizzes within chapters |
| Questions | Add and manage multiple-choice questions within quizzes |
| Scores | Submit quiz attempts and retrieve score history |
Authentication
How to obtain and use Bearer tokens
Auth endpoints
Register and login routes
Users
User management (admin only)
Subjects and chapters
Content hierarchy management
Quizzes
Quiz retrieval and management
Questions
Multiple-choice question management
Scores
Score submission and history
Public vs. authenticated endpoints
Some endpoints are accessible without a token. All others require a valid Bearer token in theAuthorization header. Admin-only endpoints additionally require that the authenticated user has the admin role.
Public (no token required):
POST /api/auth/registerPOST /api/auth/loginGET /api/subjectsGET /api/subjects/:idGET /api/quizzesGET /api/quizzes/:idGET /api/quizzes/chapter/:chapterId
POST,PUT,DELETEon/api/subjects,/api/chapters,/api/quizzes,/api/questionsGET,DELETEon/api/usersGET /api/scores(all users’ scores)
Standard error responses
All error responses return JSON with amessage field.
| Status | Meaning | Example message |
|---|---|---|
401 | Missing or invalid token | "No token provided" |
403 | Authenticated but insufficient role | "Require Admin Role!" |
404 | Resource not found | "User not found" |
500 | Unexpected server error | "Internal server error" |