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

Parameters: list_courses
NameTypeDescription
query string string Part of a content title.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/thought-industries/courses \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("thought-industries", "list_courses")
Node.js
const result = await cotlet.call('thought-industries', 'list_courses');
CLI
cotlet call thought-industries list_courses

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.