List groups

Groups of the portal with name, description and number of users.

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

read

Returns the groups you can see: admins see all of them, a manager sees only the groups assigned to them. Use group_id as the group parameter of the other tools. users is the count LearnUpon shows on the group page.

Parameters

Parameters: list_groups
NameTypeDescription
query string string Part of the group name.

Request

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

Example response

JSON

{
  "groups": [
    {
      "group_id": "4821",
      "name": "Onboarding",
      "description": "New hires, first 90 days",
      "users": 10
    },
    {
      "group_id": "4830",
      "name": "Warehouse",
      "description": "Warehouse team",
      "users": 48
    }
  ]
}

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.