Skip to content

CourseChapter

Bakhtarian edited this page May 14, 2026 · 1 revision

Course Chapter

A course chapter is a section within a Whop course that groups related lessons together, giving the course a structured outline. The SDK supports full CRUD on chapters.

SDK access

$client->courseChapters // Matchable\Whop\Resource\CourseChapterResource

Endpoints

create(array $data): array

HTTP POST course-chapters
Does Creates a new course chapter.
Parameters $data — chapter attributes (e.g. course ID, title, order).
Returns array — the decoded API response.

list(array $query = []): array

HTTP GET course-chapters
Does Lists course chapters.
Parameters $query — optional filters / pagination (e.g. course_id).
Returns array

get(string $id): array

HTTP GET course-chapters/{id}
Does Retrieves a single course chapter by ID.
Parameters $id — the course chapter ID.
Returns array

update(string $id, array $data): array

HTTP PATCH course-chapters/{id}
Does Updates a course chapter.
Parameters $id — the course chapter ID; $data — fields to change.
Returns array

delete(string $id): array

HTTP DELETE course-chapters/{id}
Does Deletes a course chapter.
Parameters $id — the course chapter ID.
Returns array

Example

$chapter = $client->courseChapters->create([
    'course_id' => 'course_...',
    'title' => 'Getting Started',
]);

Reference

Official Whop documentation: https://docs.whop.com

Clone this wiki locally