Docs Platform
Conventions
Ids, timestamps, nulls, paging, ordering and versioning.
| Topic | Rule |
|---|---|
| Base path | /api/v1 |
| Format | JSON in and out (application/json). Uploads use multipart/form-data. |
| Ids | UUIDs |
| Timestamps | ISO 8601 in UTC, for example 2026-11-25T14:03:11Z |
| Missing values | Omitted, never null, in responses |
| Naming | camelCase fields; enum values in UPPER_SNAKE_CASE |
| Slugs and keys | Lowercase letters, digits and dashes (roles: underscores) |
Paging#
People and enrollments are paged with limit (max 200) and offset:
{ "items": [ … ], "total": 1342, "limit": 50, "offset": 0 }
Other lists are plain arrays, and are small (courses, banks, products, roles). The file list returns the 500 most recent.
Ordering#
Lists have a fixed, documented order, usually newest first. Reorderable things (sections, lessons, blocks, quiz items) have an …/order endpoint that takes every id.
Draft and published are different worlds#
Writes to content only apply to drafts. A published or retired version is frozen and returns 409 if you try to change it.
Optional fields in requests#
Omit optional fields rather than sending null. For updates that replace a resource (PUT), send the whole shape.
Search#
q on GET /users matches name or email case-insensitively, and % and _ are treated literally.
Versioning and stability#
The API is versioned in the path (/api/v1). Within a version we add fields and endpoints but don’t remove or rename them. Treat unknown fields in responses as ignorable. Changes are recorded in the changelog.
OpenAPI#
The contract is published as openapi.json. Generate a typed client from it.