Skip to content

API Overview

Quizzz exposes REST API endpoints under /api/.

Authentication

Admin API routes require a valid session cookie. The session is established via Google OAuth login at /login.

Base URL

EnvironmentURL
Devhttps://quizzz-dev.techtranslab.com
Prodhttps://quizzz-gke.techtranslab.com

Key Endpoints

Health Check

GET /api/healthz

Returns 200 OK when the service is healthy.

Quiz Generation

POST /api/generate-quiz

Generate a single quiz question. See Quiz Generation.

Batch Generation

POST /api/admin/quizzes/batches/{batchId}/run
GET  /api/admin/quizzes/batches/{batchId}/status

Start and monitor batch generation. See Batch Generation.

Error Format

All API errors follow this structure:

json
{
  "error": "Human-readable error message",
  "code": "ERROR_CODE"
}

Common HTTP status codes:

CodeMeaning
200Success
202Accepted (job enqueued)
400Bad request (validation error)
401Unauthorized (not logged in)
403Forbidden (not your resource)
404Not found
429Rate limited
500Internal server error

TechTrans Lab