Skip to main content

Creating Invitations

const invitation = await thread.inviteParty({
  role: 'logistics',
  accessLevel: 'participant',
  expiresIn: '48h'
});

// Share invitation.token with the other party

Parameters

ParameterTypeDefaultDescription
rolestringrequiredBusiness/contract role
accessLevelstring'external'Permission level
expiresInstring'24h'Token expiration (e.g., ‘24h’, ‘7d’)

Invitation Properties

PropertyTypeDescription
tokenstringInvitation token to share
threadIdstringThread ID
rolestringAssigned role
accessLevelstringAccess level
expiresAtstringISO timestamp

Next Steps