Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.threadify.dev/llms.txt

Use this file to discover all available pages before exploring further.

Creating Invitations

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

// Share invitation.token with the other party

Parameters

ParameterTypeDefaultDescription
rolestringrequiredBusiness/contract role (e.g., "logistics", "supplier", "merchant")
accessLevelstring'external'Permission level. Use SDK enums: Threadify.FOR_EXTERNAL (default), Threadify.FOR_OBSERVER, Threadify.FOR_PARTICIPANT
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

Joining Threads

Learn how to join threads with invitations

Managing Access

Manage thread participants and permissions