List users

Users of the portal with name, email, user type and status; search by name or email, filter by group.

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

read

Returns users of the portal you are signed in to, a page at a time; pass next_cursor back as cursor for the next page. query matches a name or an email address. status pending returns invited people who have not accepted yet, and deletion_pending returns accounts in the 30 days after deletion; leave it out for active users. user_id is the id the other tools take.

Parameters

Parameters: list_users
NameTypeDescription
query string string Name or email address to search for.
group_id string string Only users in this group.
status enum enum pending or deletion_pending. Leave out for active users.
cursor string string Next page cursor from the previous call.

Request

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

Example response

JSON

{
  "users": [
    {
      "user_id": "51872",
      "name": "Maria Nowak",
      "email": "maria.nowak@example.com",
      "user_type": "learner",
      "login_enabled": true
    },
    {
      "user_id": "51890",
      "name": "Tom Reyes",
      "email": "tom.reyes@example.com",
      "user_type": "learner",
      "login_enabled": true
    }
  ],
  "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.