Skip to main content
GET
/
api
/
courses
List courses
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
}

Query Parameters

teacherId
string
Example:

"usr_abc123"

institutionId
string
Example:

"1"

public
enum<string>
Available options:
true,
false
Example:

"true"

Response

List of courses

courses
object[]
required
success
boolean
required