Course chapters
List course chapters
Changed onReturns a paginated list of chapters within a course, ordered by position.
Required permissions:
- courses:read
get/course_chapters
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Query parameters
after, string
Returns the elements in the list that come after the specified cursor.
before, string
Returns the elements in the list that come before the specified cursor.
first, integer
Returns the first n elements from the list.
Example:42
last, integer
Returns the last n elements from the list.
Example:42
course_id, string required
The unique identifier of the course to list chapters for.
Example:cors_xxxxxxxxxxxxx
Response
A successful response
object required
The connection type for Chapter.
data, Course Chapter List Item[] required
A list of nodes.
page_info, Page Info required
Information to aid in pagination.
Example response
{
"data": [
{
"id": "chap_xxxxxxxxxxxxx",
"order": 42,
"title": "Getting Started"
}
]
}Changes
- info
added the non-success response with the status
- info