All tools / Invite
Channel invite JSON builder
Build a Create Channel Invite body: max_age 0-604800, max_uses 0-100, temporary, unique, and voice or embedded targets.
Result
The body is required
POST /channels/{channel.id}/invites needs CREATE_INSTANT_INVITE and a JSON body, even when every field is optional: send {} if you want the defaults. max_age defaults to 86400 and must be 0-604800 (7 days). max_uses defaults to 0 and must be 0-100. Target type 1 requires the streaming user's id. Target type 2 requires an application id, and that app must have the EMBEDDED flag. target_user_ids holds at most 1000 ids and cannot be combined with target_users_file.
Related: OAuth2 invite URL builder · OAuth2 scope and install-context URL