Modulify

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!, and any address that belongs to a Modulify site. 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.