Skip to main content

Inviting users to documents

To invite users to a document, use the inviteUsersToDocument API.

client.inviteUsersToDocument(docId, usersToInvite);

The current document id can be retrieved with client.getDocumentId(). Otherwise you can pass in any other document ID that the user has permission to invite users to.

usersToInvite is an array of emails to invite. If an email is entered which does not belong to a user, an anonymous user will be created for that email. When the user signs up with that email, the document will already exist in their account.

If email notifications are setup, an email will be sent to each user saying they were added to a document.

Joining public documents#

If a document is public, then any user may join that document at any time. See more info about public documents here.