List courses
Content from Courses > All Courses with its content_id and type.
GET https://cotlet.dev/api/v1/thought-industries/courses
read
Reads the Courses > All Courses list. Returns the content_id, title and content type (course, webinar, video and so on). Pass content_id to get_course, enroll_learner, import_learners and set_content_status. Use query for part of a title.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Part of a content title. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/thought-industries/courses \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("thought-industries", "list_courses") const result = await cotlet.call('thought-industries', 'list_courses'); cotlet call thought-industries list_courses Example response
{
"courses": [
{
"content_id": "8f2a1c34-5b6d-4e7f-9a01-2b3c4d5e6f70",
"title": "Onboarding 101",
"type": "course"
},
{
"content_id": "4b1c2d3e-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
"title": "Safety basics",
"type": "course"
}
],
"next_cursor": null
}