List courses

Courses of the portal with name and published or draft status.

GET https://cotlet.dev/api/v1/learnupon/courses

read

Returns the courses in the portal with their status. Only published courses can take enrollments: LearnUpon does not enroll anyone, individual or group, on a draft. Use course_id in the enrollment tools.

Parameters

Parameters: list_courses
NameTypeDescription
query string string Part of the course name.

Request

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

Example response

JSON

{
  "courses": [
    {
      "course_id": "10233",
      "name": "Forklift safety",
      "status": "published"
    },
    {
      "course_id": "10240",
      "name": "Data privacy basics",
      "status": "published"
    },
    {
      "course_id": "10251",
      "name": "Workshop attendance",
      "status": "draft"
    }
  ]
}

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.