cURL
curl --request GET \ --url https://api.terang.ai/api/courses
{ "courses": [ { "courseCode": "COURSE0042", "coverPicture": "https://example.com/cover.jpg", "createdAt": "2026-01-01T00:00:00.000Z", "currency": "IDR", "description": "A beginner-friendly course on ML fundamentals", "endDate": "2026-06-15T00:00:00.000Z", "enrollmentType": "code", "id": 1, "institutionId": 1, "instructor": "Dr. Ahmad", "isPurchasable": true, "name": "Introduction to Machine Learning", "previewMode": false, "price": "150000", "startDate": "2026-01-15T00:00:00.000Z", "teacherId": "usr_abc123", "type": "self_paced", "updatedAt": "2026-01-10T00:00:00.000Z" } ], "success": true }
Fetch courses. Pass public=true for public listing, or teacherId for teacher-specific courses.
public=true
teacherId
"usr_abc123"
"1"
true
false
"true"
List of courses
Show child attributes