Ankiren Developer Documentation
Welcome to the Ankiren API documentation. Ankiren is a LifeOS platform for lifelong learning and personal wellness.
Services
The platform is composed of multiple microservices, each with its own API:
| Service | Description |
|---|---|
| Auth | Authentication via Google OAuth + JWT sessions |
| Authorization | Role-based access control (RBAC) |
| Course | Course management and content delivery |
| Flashcard | Spaced-repetition flashcard system (deprecated) |
| Health | Weight/height tracking with BMI calculation |
| Linguistic | Language learning content |
| Math | Mathematics learning and practice |
| Meditation (Admin) | Meditation content management |
| Meditation (User) | Meditation sessions, goals, and preferences |
| OKR | Objectives and Key Results tracking |
| Pomodoro | Pomodoro timer sessions and statistics |
| Search | Full-text search across the platform |
| Skill | Hierarchical skill tree management |
Authentication
All API endpoints require authentication via JWT bearer tokens. The shell app (ankiren.com) issues JWTs through NextAuth.js with Google OAuth. Microservices validate tokens statelessly.
Authorization: Bearer <jwt-token>
Getting Started
Browse the API Reference in the sidebar to explore available endpoints, request/response schemas, and try out requests interactively.