Skip to main content
This endpoint lists the groups in your workspace. Use the returned id with the other group endpoints. The call is authorized by the workspace API key’s USER_MANAGEMENT_API scope. It does not run as the person who created the key, so it keeps working after that admin leaves the workspace.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Prerequisites

  • API Key with the USER_MANAGEMENT_API scope
  • The API key must be created by a workspace admin

Behavior

  • Groups are ordered by id, not by name. limit is 1 to 250. The default is 50.
  • Pass nextCursor back unchanged as cursor. nextCursor is the last group’s id. It is omitted on the last page. cursor must be a UUID.
  • name returns groups with exactly that name. The match ignores case. It is not a partial search. A name longer than 100 characters returns 400.
  • You can combine name with cursor.
  • Each group has id, name, description, isScimManaged, isPublic, memberCount, createdAt, and updatedAt.
  • memberCount counts human members. Deleted users and service accounts are not included.
  • isPublic is read only on this API. A group created with Create Group starts with isPublic set to false.
  • SCIM managed groups (isScimManaged is true) are included. You can read them here. Update Group, Delete Group, and the member write endpoints return 409 with code: "GROUP_SCIM_MANAGED" if you try to change one.
  • A group from another workspace is not listed.
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.