Skip to content

invite_member

Deprecated: use create_invite, which emails the address an invitation to accept.

Adds a user to a workspace by email at once, creating the Layer user if needed, with the
given role (or the workspace's default) and an ACTIVE membership; they receive an invite
notification. Fails if the workspace has invites disabled or the user is already a member.
Requires workspace member-edit permission.

Parameters

ParameterTypeDefaultDescription
workspace_idrequiredstring (uuid)—The workspace to invite the user into.
emailrequiredstring (email)—Email address of the person to invite. A Layer user is created if none exists.
rolestring—The built-in role to grant, by key: admin or creator, plus member in an enterprise workspace. Deprecated: use role_id.
role_idstring (uuid)—ID of the role to grant, custom included. Use list_roles to find one. Leave unset for the workspace's default: creator, or member in an enterprise workspace.