Get learner access

One learner's profile with the content on the Access tab and any waitlisted content.

GET https://cotlet.dev/api/v1/thought-industries/learner

read

Opens the learner profile and reads the Access tab: each piece of content with its type and status, and the Waitlisted Content container when the learner is on a waitlist. Waitlisted Content shows only for accounts allowed to provision learner access. Use it before enroll_learner to see what the learner already has.

Parameters

Parameters: get_learner
NameTypeDescription
learner string required string Learner email or learner_id from list_learners.

Request

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

Example response

JSON

{
  "learner_id": "3f9a2b18-7c4d-4e2a-9b1f-0c5d6e7f8a90",
  "name": "Priya Nair",
  "email": "priya.nair@example.com",
  "panorama": "Retail",
  "content": [
    {
      "content_id": "8f2a1c34-5b6d-4e7f-9a01-2b3c4d5e6f70",
      "title": "Onboarding 101",
      "type": "course",
      "status": "started"
    }
  ],
  "waitlisted": []
}

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.