Creating Invitations
const invitation = await thread.inviteParty({
role: 'logistics',
accessLevel: Threadify.FOR_EXTERNAL,
expiresIn: '48h'
});
// Share invitation.token with the other party
invitation, err := thread.InviteParty(ctx, threadify.InviteOptions{
Role: "logistics",
AccessLevel: threadify.ForExternal,
ExpiresIn: "48h",
})
if err != nil {
log.Fatal(err)
}
// Share invitation.Token with the other party
fmt.Println("Token:", invitation.Token)
from threadify import Threadify
from threadify.models import InviteOptions
invitation = await thread.invite_party(
InviteOptions(role="logistics", access_level=Threadify.FOR_EXTERNAL, expires_in="48h")
)
# Share invitation.token with the other party
print("Token:", invitation.token)
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
role | string | required | Business/contract role (e.g., "logistics", "supplier", "merchant") |
accessLevel | string | 'external' | Permission level. Use SDK enums: Threadify.FOR_EXTERNAL (default), Threadify.FOR_OBSERVER, Threadify.FOR_PARTICIPANT |
expiresIn | string | '24h' | Token expiration (e.g., '24h', '7d') |
Invitation Properties
| Property | Type | Description |
|---|---|---|
token | string | Invitation token to share |
threadId | string | Thread ID |
role | string | Assigned role |
accessLevel | string | Access level |
expiresAt | string | ISO timestamp |
Next Steps
Joining Threads
Learn how to join threads with invitations
Managing Access
Manage thread participants and permissions