Developers
Pathokrom API
A simple, read-only API for pulling your academy's published courses into your own website or app. No SDK required — plain JSON over HTTPS.
Getting a key
Generate a key from your academy admin: Manage → API access. The full key is shown once, right after you create it — store it somewhere safe. Each key belongs to one academy and can only read that academy's own data.
Authentication
Send your key as a bearer token on every request:
Authorization: Bearer lms_live_xxxxxxxxxxxxxxxxxxxxxxxxA missing or invalid key returns a 401.
Base URL
https://<your-academy-domain>/api/v1All endpoints below are relative to this base URL.
Endpoints
GET
/api/v1/organizationYour academy's public identity.
Request
curl https://<your-domain>/api/v1/organization \
-H "Authorization: Bearer lms_live_xxxx"Response
{
"organization": {
"slug": "demo-academy",
"name": "Demo Academy",
"logoUrl": "https://.../logo.png",
"themeColor": "#1e6a56"
}
}GET
/api/v1/categoriesCourse categories you've created.
Request
curl https://<your-domain>/api/v1/categories \
-H "Authorization: Bearer lms_live_xxxx"Response
{
"categories": [
{ "id": 1, "name": "Design Foundations" }
]
}GET
/api/v1/coursesPublished courses, newest first. Add ?q=keyword to search by title.
Request
curl "https://<your-domain>/api/v1/courses?q=design" \
-H "Authorization: Bearer lms_live_xxxx"Response
{
"courses": [
{
"id": 12,
"title": "Intro to Design",
"slug": "intro-to-design",
"description": "A beginner-friendly tour of design fundamentals.",
"price": 999,
"coverImageUrl": "https://.../cover.jpg",
"categoryName": "Design Foundations",
"lessonCount": 18
}
]
}GET
/api/v1/courses/{slug}A single published course, including its lecture list.
Request
curl https://<your-domain>/api/v1/courses/intro-to-design \
-H "Authorization: Bearer lms_live_xxxx"Response
{
"course": {
"id": 12,
"title": "Intro to Design",
"slug": "intro-to-design",
"description": "A beginner-friendly tour of design fundamentals.",
"price": 999,
"coverImageUrl": "https://.../cover.jpg",
"categoryName": "Design Foundations",
"lessonCount": 18,
"hasQuiz": true,
"lectures": [
{ "id": 101, "title": "Welcome", "type": "VIDEO", "isFreePreview": true },
{ "id": 102, "title": "Color theory", "type": "VIDEO", "isFreePreview": false }
]
}
}Notes
- price is in INR. 0 means the course is free.
- Only PUBLISHED courses are ever returned — drafts and archived courses are never exposed.
- Lecture titles are included for every lecture; only free-preview or enrolled lectures have playable content, and this API doesn't serve that content at all — it's read-only metadata.
Errors
| Status | error | Meaning |
|---|---|---|
| 401 | missing_api_key | No Authorization header was sent. |
| 401 | invalid_api_key | The key doesn't exist, or has been revoked. |
| 404 | course_not_found | No published course with that slug in your academy. |
