Invites

Create pack invite

Creates a new invite for the specified pack with optional parameters such as maximum age and maximum uses. The authenticated user must have permission to create invites for the pack and must be a default (non-bot) user. Returns the created invite with full metadata including usage statistics.

post/packs/{pack_id}/invites

Path parameters

pack_idstring snowflake required

The ID of the pack

Request body

max_usesinteger nullable

Maximum number of times this invite can be used (0 for unlimited)

max_ageinteger nullable

Duration in seconds before the invite expires (0 for never)

uniqueboolean nullable

Whether to create a new unique invite or reuse an existing one

Response

Success

OR
OR

Changes

No recorded changes to this endpoint across all 1 revision of this API.