List all workspace users
Returns a list of all users in the workspace, including employees, organization members, and support users. This endpoint is optimized for common list data retrieval and provides essential user information for dropdowns, user pickers, and other UI components that need to display workspace users. The response includes user identification (ID, name, avatar), position/title, employee ID (if applicable), user type, login capability, and deletion status. Organization members have restricted visibility: they only see users from their own organization, not all workspace users. Use the type query parameter to filter by user type (Employee, OrganizationMember, LeadtimeSupport, Agent). By default, deleted users are included in the response; set includeDeleted=false to exclude them.
/workspace/usersAuthorizationOAuth2 access token · headerrequiredapi:readAuthorizationBearer token (JWT) · headerrequiredtypestringEmployeeOrganizationMemberLeadtimeSupportHelpdeskUserAgentincludeDeletedbooleanWorkspaceUserDtoagentSystemKeyobject | nullavatarIdobjectcanLoginbooleanrequiredemployeeIdobjectidstringrequiredisDeletedbooleanrequirednamestringrequiredpositionstringrequireduserTypestringrequiredEmployeeOrganizationMemberLeadtimeSupportHelpdeskUserAgentcurl -X GET "https://leadtime.app/api/public/workspace/users" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/workspace/users", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/workspace/users",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)[
{
"agentSystemKey": {},
"avatarId": {},
"canLogin": true,
"employeeId": {},
"id": "string",
"isDeleted": true,
"name": "string",
"position": "string",
"userType": "Employee"
}
]