Skip to main content

Welcome

The Terang AI API is split into two surfaces:
  1. Core API — SSO, user management, health checks. Served from the API gateway.
  2. LMS API — Courses, learner progress, bundles. Served from the LMS application.

Base URLs

Authentication

API Key Authentication (LMS APIs)

LMS API endpoints (courses, lms-progress) use API key authentication. Include your API key in the x-api-key header:
How to get an API key:
  1. Log in to the LMS as a teacher/admin
  2. Go to Dashboard → API Keys
  3. Click Buat Kunci Baru and give it a name
  4. Copy the generated key immediately — it’s shown only once
Rate limits: 100 requests per minute per API key. Exceeding this returns HTTP 429 with a Retry-After header.

Session Authentication (Internal UI)

Internal dashboard endpoints use cookie-based session authentication via Better Auth (automatic when logged in).