Check an email before inviting
check_member_email
Checks one email address before inviting it, reporting whether it is already a member, already invited or free to invite.
Call it before invite_workspace_member so nobody is sent a second invitation by mistake. A free address answers Email is valid., while a taken one comes back as an error reading This user is already a workspace member! or This user already has a pending invitation!
It also refuses your own address, with You cannot invite yourself!, any address that belongs to a Modulify site, and an address on a temporary email domain that no Modulify account uses yet, with We do not allow invites to temporary email domains like this one. If you think this is wrong, please contact support! An address with a + before the @ that no Modulify account uses yet is refused with You cannot invite an address with a + unless it already has a Modulify account. Please use the address without the + part! Although it only reads, it needs the Manage members permission (members.manage), the same one inviting needs. See Members and roles.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
workspaceId |
string | Yes | The workspace id. |
email |
string | Yes | The email address to check. |