API reference

Courses

A course lives in your Sublaunch's Classroom, opened by the tiers you give it. The API makes a course with its modules and lessons' names. Lessons are written in the app.

A new course and its changes reach members once you publish the draft. Deleting a course and giving it by hand take effect at once.

The course object

A course of your Sublaunch's Classroom, with the tiers that open it.

Attributes

  • idstring
    Unique identifier for the course.
  • objectstring
    Always course.
  • namestring
    The course's name.
  • descriptionstring
    One line under its name.
  • cover_urlstring or null
    Its cover image's URL.
  • urlstring
    The course in the Sublaunch's Classroom.
  • lessons_countinteger
    How many lessons it has.
  • tier_idsarray of strings
    The tiers that open it.
  • liveboolean
    Whether members see it. false while it is only in the draft.
  • has_draftboolean
    Whether the draft changes it.
  • modulesarray of objects
    Its outline, only from Retrieve a course and Create a course.
Course object
{
  "id": "Hc4mQ9xRt2",
  "object": "course",
  "name": "Price action from zero",
  "description": "Read a chart in 12 short lessons.",
  "cover_url": "https://example.com/course-cover.png",
  "url": "https://sublaunch.com/alphadesk/classroom/Hc4mQ9xRt2",
  "lessons_count": 12,
  "tier_ids": ["tier1"],
  "live": true,
  "has_draft": false
}

List courses

GET/v1/coursesread scopeMCPlist_courses

Returns the Sublaunch's courses in Classroom's order, live or only in the draft.

Returns

A list of course objects, whole in one page.

GET/v1/courses
curl https://api.sublaunch.com/v1/courses \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "object": "list",
  "data": [
    {
      "id": "Hc4mQ9xRt2",
      "object": "course",
      "name": "Price action from zero",
      "description": "Read a chart in 12 short lessons.",
      "cover_url": "https://example.com/course-cover.png",
      "url": "https://sublaunch.com/alphadesk/classroom/Hc4mQ9xRt2",
      "lessons_count": 12,
      "tier_ids": ["tier1"],
      "live": true,
      "has_draft": false
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Retrieve a course

GET/v1/courses/:course_idread scopeMCPget_course

Returns one course with its outline, its modules and their lessons' names, the draft included.

Path parameters

  • course_idstringRequired
    The course's ID, as List courses returns it.

Returns

A course object with its modules.

Errors

GET/v1/courses/:course_id
curl https://api.sublaunch.com/v1/courses/Hc4mQ9xRt2 \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "id": "Hc4mQ9xRt2",
  "object": "course",
  "name": "Price action from zero",
  "description": "Read a chart in 12 short lessons.",
  "cover_url": "https://example.com/course-cover.png",
  "url": "https://sublaunch.com/alphadesk/classroom/Hc4mQ9xRt2",
  "lessons_count": 12,
  "tier_ids": ["tier1"],
  "live": true,
  "has_draft": false,
  "modules": [
    {
      "id": "m4Kx2Q",
      "title": "The basics",
      "lessons": [
        {
          "id": "l8Qm3X",
          "name": "What a candle tells you"
        },
        {
          "id": "l2Rk7P",
          "name": "Support and resistance"
        }
      ]
    }
  ]
}

Create a course

POST/v1/courseswrite scopeMCPcreate_course

Creates a course in Classroom with its modules and lessons' names, the lessons empty for you to write in the app. Members see it once you publish the draft.

Body parameters

  • namestringRequired
    The course's name, 100 characters at most.
  • descriptionstring
    One line under its name, 500 characters at most.
  • cover_urlstring
    Its cover image, a public HTTPS URL.
  • modulesarray of objects
    Its modules in order, 30 at most. Without them, the course starts with one empty lesson.
  • tier_idsarray of strings
    The tiers that open it, by ID. Every tier by default.

Returns

The new course object with its modules.

Errors

POST/v1/courses
curl -X POST https://api.sublaunch.com/v1/courses \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Options 101",
    "description": "Calls, puts and how to size them.",
    "modules": [
      {
        "title": "Getting started",
        "lessons": ["What an option is", "Calls and puts", "Sizing a position"]
      }
    ],
    "tier_ids": ["tier1"]
  }'
Response201
{
  "id": "Hn7xK2mQ4R",
  "object": "course",
  "name": "Options 101",
  "description": "Calls, puts and how to size them.",
  "cover_url": null,
  "url": "https://sublaunch.com/alphadesk/classroom/Hn7xK2mQ4R",
  "lessons_count": 3,
  "tier_ids": ["tier1"],
  "live": false,
  "has_draft": false,
  "modules": [
    {
      "id": "m7Pq2X",
      "title": "Getting started",
      "lessons": [
        {
          "id": "l3Xk9M",
          "name": "What an option is"
        },
        {
          "id": "l5Qm2R",
          "name": "Calls and puts"
        },
        {
          "id": "l9Kp4T",
          "name": "Sizing a position"
        }
      ]
    }
  ]
}

Update a course

PATCH/v1/courses/:course_idwrite scopeMCPupdate_course

Changes a course's name, description, cover or the tiers that open it, in the draft.

Path parameters

  • course_idstringRequired
    The course's ID, as List courses returns it.

Body parameters

  • namestring
    The course's name, 100 characters at most.
  • descriptionstring
    One line under its name, 500 characters at most.
  • cover_urlstring
    Its cover image, a public HTTPS URL. An empty string removes it.
  • tier_idsarray of strings
    The tiers that open it, by ID.

Returns

The updated course object.

Errors

PATCH/v1/courses/:course_id
curl -X PATCH \
  https://api.sublaunch.com/v1/courses/Hc4mQ9xRt2 \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Price action, the full course"
  }'
Response200
{
  "id": "Hc4mQ9xRt2",
  "object": "course",
  "name": "Price action, the full course",
  "description": "Read a chart in 12 short lessons.",
  "cover_url": "https://example.com/course-cover.png",
  "url": "https://sublaunch.com/alphadesk/classroom/Hc4mQ9xRt2",
  "lessons_count": 12,
  "tier_ids": ["tier1"],
  "live": true,
  "has_draft": true
}

Delete a course

DELETE/v1/courses/:course_idwrite scopeMCPdelete_course

Deletes a course from Classroom at once, and its students lose it. It cannot be undone.

Path parameters

  • course_idstringRequired
    The course's ID, as List courses returns it.

Returns

An object with the course's id and deleted set to true.

Errors

DELETE/v1/courses/:course_id
curl -X DELETE \
  https://api.sublaunch.com/v1/courses/Hn7xK2mQ4R \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "id": "Hn7xK2mQ4R",
  "object": "course",
  "deleted": true
}

The student object

Someone who opened a course, or was given it by hand.

Attributes

  • idstring or null
    Unique identifier for the student.
  • objectstring
    Always student.
  • emailstring or null
    The student's email.
  • namestring or null
    The student's name.
  • accessstring
    given when the course was given by hand, membership when a tier opens it.
    givenmembership
  • lessons_completedinteger
    Lessons the student completed.
  • notestring or null
    A private note on the student, seen by the team only.
  • joined_atstring or null
    When the student started, ISO 8601.
Student object
{
  "id": "St8kQ2xPmL",
  "object": "student",
  "email": "sam@example.com",
  "name": "Sam",
  "access": "membership",
  "lessons_completed": 5,
  "note": null,
  "joined_at": "2026-09-02T18:41:07.000Z"
}

List students

GET/v1/courses/:course_id/studentsread scopeMCPlist_students

Returns who opened a course or was given it, newest first.

Path parameters

  • course_idstringRequired
    The course's ID, as List courses returns it.

Query parameters

  • searchstring
    Only the students whose email or name has these words.
  • limitinteger
    How many objects to return, from 1 to 100. 25 by default.
  • cursorstring
    The next_cursor of the previous page, to get the page after it. Keep the other parameters the same. See Pagination.

Returns

A list of student objects.

Errors

  • No course with this ID in the key's Sublaunch.
  • A parameter has a value the API does not accept. param names it.
  • The cursor is not one this list gave, was made for other filters, or goes deeper than its limit.
GET/v1/courses/:course_id/students
curl -G \
  https://api.sublaunch.com/v1/courses/Hc4mQ9xRt2/students \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -d limit=25
Response200
{
  "object": "list",
  "data": [
    {
      "id": "St8kQ2xPmL",
      "object": "student",
      "email": "sam@example.com",
      "name": "Sam",
      "access": "membership",
      "lessons_completed": 5,
      "note": null,
      "joined_at": "2026-09-02T18:41:07.000Z"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ0IjoiMjAyNi0xMS0xNVQxNzowMjo0MC4wMDBaIn0"
}

Give a course

POST/v1/courses/:course_id/studentswrite scopeMCPgive_course_access

Gives a course to an email by hand, as Students' Add in the app, with no membership. That person opens it once signed in with this email.

Path parameters

  • course_idstringRequired
    The course's ID, as List courses returns it.

Body parameters

  • emailstringRequired
    Who gets the course.
  • notestring
    A private note on the student, seen by the team only.

Returns

An object with the course_id, the email, access set to given, and already set to true when the email had the course already.

Errors

POST/v1/courses/:course_id/students
curl -X POST \
  https://api.sublaunch.com/v1/courses/Hc4mQ9xRt2/students \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "jordan@example.com"
  }'
Response201
{
  "object": "student",
  "course_id": "Hc4mQ9xRt2",
  "email": "jordan@example.com",
  "access": "given",
  "already": false
}

Take a course back

DELETE/v1/courses/:course_id/students/:emailwrite scopeMCPremove_course_access

Takes back a course given by hand. A member whose tier opens the course keeps it.

Path parameters

  • course_idstringRequired
    The course's ID, as List courses returns it.
  • emailstringRequired
    The student's email.

Returns

An object with the course_id, the email and removed set to true.

Errors

DELETE/v1/courses/:course_id/students/:email
curl -X DELETE \
  https://api.sublaunch.com/v1/courses/Hc4mQ9xRt2/students/jordan@example.com \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "object": "student",
  "course_id": "Hc4mQ9xRt2",
  "email": "jordan@example.com",
  "removed": true
}