This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a pending invitation and emails it to the recipient.
Provide the app ID, recipient email, and Identity role IDs in invite.policyIds.
As with site invitations, policy IDs are role IDs, not assignment IDs.
See Get Roles Info
for role discovery. Select roles applicable to app access, not unrelated site roles.
Requires a signed-in user with account context.
Returns the invitation and its acceptance link. Accepting the invitation assigns the selected roles.
Fails if an active invitation already exists for this app and email, or a policy ID is invalid.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.