Courses

List courses

Returns a paginated list of courses, filtered by either an experience or a company.

Required permissions:

  • courses:read
get/courses

Query parameters

afterstring

Returns the elements in the list that come after the specified cursor.

beforestring

Returns the elements in the list that come before the specified cursor.

firstinteger

Returns the first n elements from the list.

Example:42
lastinteger

Returns the last n elements from the list.

Example:42
experience_idstring

The unique identifier of the experience to list courses for.

Example:exp_xxxxxxxxxxxxxx
account_idstring

The unique identifier of the company to list courses for.

Example:biz_xxxxxxxxxxxxxx

Response

A successful response

Example response

{
  "data": [
    {
      "chapters_count": 42,
      "completed_lessons_count": 42,
      "cover_image": "https://assets.whop.com/images/course-cover.jpg",
      "created_at": "2023-12-01T05:00:00.401Z",
      "description": "Learn advanced trading strategies from industry experts.",
      "id": "cors_xxxxxxxxxxxxx",
      "latest_lesson_created_at": "2023-12-01T05:00:00.401Z",
      "lesson_unlock_days": [
        42
      ],
      "order": "123.45",
      "resume_lesson": {
        "id": "lesn_xxxxxxxxxxxxx"
      },
      "started_at": "2023-12-01T05:00:00.401Z",
      "tagline": "Master the fundamentals in 30 days",
      "thumbnail": {
        "content_type": "image/jpeg",
        "filename": "document.pdf",
        "optimized_url": "https://media.whop.com/abc123/optimized.jpg",
        "source_url": "https://media.whop.com/abc123/original.jpg"
      },
      "title": "Introduction to Technical Analysis",
      "total_duration_seconds": 42,
      "total_lessons_count": 42,
      "updated_at": "2023-12-01T05:00:00.401Z"
    }
  ]
}

Changes

Changed in 2 of the 74 revisions of this API.19

    • ●

      deleted the query request parameter company_id

      request-parameter-removed

    • ○

      added the new optional query request parameter account_id

      new-optional-request-parameter

    This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      added the required property // to the response with the status

      response-required-property-added

    • ○

      added the required property // to the response with the status

      response-required-property-added

    • ○

      added the required property // to the response with the status

      response-required-property-added

    • ○

      added the required property // to the response with the status

      response-required-property-added

    • ○

      added the required property // to the response with the status

      response-required-property-added

    • ○

      added the required property // to the response with the status

      response-required-property-added

    • ○

      added the required property // to the response with the status

      response-required-property-added

    • ○

      added the required property // to the response with the status

      response-required-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

Of the 74 revisions, 1 has no diff computed.