Skip to main content
Version: Next

RESTPostAPIChannelInviteJSONBody

Index

Properties

optionalmax_age

max_age?: number = 86400 (24 hours)

Duration of invite in seconds before expiry, or 0 for never

optionalmax_uses

max_uses?: number = 0

Max number of uses or 0 for unlimited

optionaltarget_application_id

target_application_id?: string

The id of the embedded application to open for this invite

  • Required if target_type is 2
  • The application must have the EMBEDDED flag

optionaltarget_type

target_type?: InviteTargetType

optionaltarget_user_id

target_user_id?: string

The id of the user whose stream to display for this invite

  • Required if target_type is 1
  • The user must be streaming in the channel

optionaltemporary

temporary?: boolean = false

Whether this invite only grants temporary membership

optionalunique

unique?: boolean = false

If true, don't try to reuse a similar invite (useful for creating many unique one time use invites)