quizbase
Skip to content
Command Palette
Search for a command to run...
QuizBase · Docs

GET /v1/categories#

GET /api/v1/categories API key required

Returns the full list of categories with localized name. Requires X-API-Key (or Authorization: Bearer …). Cached for 1h server-side. Responses are sent with Cache-Control: private, no-store — an authenticated response must never be stored by a shared cache, so handle any client-side caching yourself.

Use this for dropdowns, filter UIs, and landing page counts. Categories change rarely — fetch once, cache for hours.

Parameters#

ParameterTypeDefaultDescription
lang enumenSupported: `en`, `pl`. Sets the language of `name`. Falls back to English where a category translation is missing. Any other value returns `400`.

Examples#

Response#

Performance#

  • p50 (warm): ~22ms
  • p95: ~43ms (sustained 50 RPS, 5-min baseline). Single-request warm: ~30ms.
  • Last measured: 2026-05-30
  • SLO: p95 < 500ms, error rate < 1%
  • Server-side response cache (1h) in front of a pre-aggregated table — warm requests are served without touching the database.

See also#