Course chapters
Retrieve course chapter
Changed onRetrieves the details of an existing course chapter.
Required permissions:
- courses:read
get/course_chapters/{id}
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
id, string required
Example:chap_xxxxxxxxxxxxx
The unique identifier of the chapter to retrieve.
Response
A successful response
Course Chapter required
A grouping of related lessons within a course, used to organize content into sections.
id, string required
The unique identifier for the chapter.
lessons, object[] required
An ordered list of lessons in this chapter, sorted by display position. Hidden lessons are excluded for non-admin users.
order, integer required
The sort position of this chapter within its parent course, starting from zero.
title, string required
The display name of the chapter shown to students. Maximum 150 characters.
Example response
{
"id": "chap_xxxxxxxxxxxxx",
"lessons": [
{
"id": "lesn_xxxxxxxxxxxxx",
"order": 42,
"title": "Preparing Paint for Ceramic Coating"
}
],
"order": 42,
"title": "Getting Started"
}Changes
- info
added the non-success response with the status
- info