role is optional and defaults to member.
A 200 response can still leave some emails unchanged. Check added, alreadyMembers, and notFound.
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
Prerequisites
- API Key with the
USER_MANAGEMENT_APIscope - The API key must be created by a workspace admin
Behavior
- Send 1 to 250 members. An empty list returns
400. roleismember,editor, oradmin. Another value returns400.addedandalreadyMemberseach list members, withid,email,name,role, andaddedAt.alreadyMembersis people who were already in the group.notFoundis the list of email strings for people who are not active human members, including pending invites, inactive members, service accounts, and unknown emails.- Someone who is already in the group keeps their role, unless they are a workspace admin and this call also adds someone else. A workspace admin is then stored as group
admin. - A new member who is a workspace admin is stored as group
admin, even when you sendmemberoreditor. The returnedroleis the role that was stored. - Invite someone first with Invite Users. Add them after they have joined.
- Email matching ignores case. If the same email appears twice, the first
roleis used. - SCIM managed group? Returns
409withcode: "GROUP_SCIM_MANAGED"and messageThis group is managed by SCIM and cannot be changed through the API. - Unknown group, a deleted group, or another workspace? Returns
404withcode: "GROUP_NOT_FOUND"and messageGroup not found. groupIdis not a UUID? Returns400.
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.