The Wix Site Invites API allows you to manage the invitation process for collaborators on a Wix site. Through this API, you can send email invitations to individuals, enabling them to join a site as collaborators with specific roles and permissions.
Learn more about Site Collaborators.
Note that site collaborators are managed with the Contributors API.
Site invites progress from creation to assignment through a series of phases, as follows:
To use the SiteInvites API, install the @wix/user-management
package using npm or Yarn:
npm install @wix/user-management
or
yarn add @wix/user-management
Then import { siteInvites }
from @wix/user-management
:
import { siteInvites } from "@wix/user-management";
This article shares some typical use cases you can support, as well as an example flow that supports each use case. You're certainly not limited to these use cases, but they can be a helpful jumping off point as you plan your implementation.
If your company creates Wix sites before handing them over to customers, you can invite the relevant customers to manage their sites once the site design and setup are complete.
inviteId
returned from the Bulk Invite call.inviteId
returned from the Bulk Invite call.