Headless LMS

List courses

GET
/api/courses

Query Parameters

page?integer
Range1 <= value <= 9007199254740991
Default1
pageSize?integer
Range1 <= value <= 100
Default20
search?string
sort?string
status?string

Value in

  • "draft"
  • "published"
category?string

Response Body

application/json

curl -X GET "https://example.com/api/courses"
{  "rows": [    {      "id": "string",      "title": "string",      "slug": "string",      "description": "string",      "status": "draft",      "category": "string",      "moduleCount": -9007199254740991,      "activityCount": -9007199254740991,      "enrolledCount": -9007199254740991,      "updatedAt": "string",      "createdAt": "string"    }  ],  "total": -9007199254740991,  "page": -9007199254740991,  "pageSize": -9007199254740991}