List All Chapters
Developing
GET
/courses/{courseId}/chapters
version
: a latest_published, latest or a valid mongo id.cycleId
: a mongodb ID used to fetch a specific cycle for the chapterRequest Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.aladia.io/v2/courses/6655adf6efc95eeb791f8e65/chapters?version&cycleId&limit=50&next=&prev=&sortBy=&sortDirection=asc'
Response Response Example
200 - Success
{
"data": [
{
"id": "e0e7cc93cccbfe758b4d0fdb",
"courseId": "d20ead2e9195a343e8238bb5",
"name": "Chapter 1",
"description": "Chapter 1 description",
"dates": {
"startDate": "2004-01-02T02:52:15.009Z",
"endDate": "2077-01-30T21:55:17.680Z"
},
"lectures": [
"fbd67eecc59c8dad379d8631"
],
"lecturesDuration": 23514,
"completion": {
"chapterId": "6662c783d003f900eb646083",
"completions": [],
"average": 0
},
"status": "draft",
"createdAt": "2061-05-21T03:34:02.459Z",
"updatedAt": "2006-12-26T11:55:14.714Z"
}
],
"cursor": {
"next": null,
"prev": null,
"totalItems": 1
}
}
Request
Path Params
courseId
stringÂ
required
Example:
6655adf6efc95eeb791f8e65
Query Params
version
stringÂ
optional
cycleId
string  | nullÂ
optional
limit
integerÂ
optional
Default:
50
next
stringÂ
optional
prev
stringÂ
optional
sortBy
stringÂ
optional
sortDirection
enum<string>Â
optional
Allowed values:
ascdesc
Default:
asc
Responses
Modified at 2025-04-12 09:46:35