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.
curl --request POST \
--url https://api.fluxer.app/v1/packs/{pack_id}/invites \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"max_uses": 50,
"max_age": 302400,
"unique": true
}
'{
"code": "<string>",
"type": 0,
"guild": {
"id": "<string>",
"name": "<string>",
"splash_card_alignment": 0,
"features": [
"<string>"
],
"icon": "<string>",
"banner": "<string>",
"banner_width": 1073741823,
"banner_height": 1073741823,
"splash": "<string>",
"splash_width": 1073741823,
"splash_height": 1073741823,
"embed_splash": "<string>",
"embed_splash_width": 1073741823,
"embed_splash_height": 1073741823
},
"channel": {
"id": "<string>",
"type": 1073741823,
"name": "<string>",
"recipients": [
{
"username": "<string>"
}
]
},
"member_count": 1073741823,
"presence_count": 1073741823,
"temporary": true,
"created_at": "2023-11-07T05:31:56Z",
"uses": 1073741823,
"max_uses": 1073741823,
"max_age": 1073741823,
"inviter": {
"id": "<string>",
"username": "<string>",
"discriminator": "<string>",
"global_name": "<string>",
"avatar": "<string>",
"avatar_color": 1073741823,
"flags": 1073741823,
"bot": true,
"system": true
},
"expires_at": "2023-11-07T05:31:56Z"
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
The ID of the pack
Maximum number of times this invite can be used (0 for unlimited)
0 <= x <= 100Duration in seconds before the invite expires (0 for never)
0 <= x <= 604800Whether to create a new unique invite or reuse an existing one
Success
The unique invite code
The type of invite (guild)
0 The guild this invite is for
Show child attributes
Show child attributes
The approximate total member count of the guild
0 <= x <= 2147483647The approximate online member count of the guild
0 <= x <= 2147483647Whether the invite grants temporary membership
ISO8601 timestamp of when the invite was created
The number of times this invite has been used
0 <= x <= 2147483647The maximum number of times this invite can be used
0 <= x <= 2147483647The duration in seconds before the invite expires
0 <= x <= 2147483647The user who created the invite
Show child attributes
ISO8601 timestamp of when the invite expires
curl --request POST \
--url https://api.fluxer.app/v1/packs/{pack_id}/invites \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"max_uses": 50,
"max_age": 302400,
"unique": true
}
'{
"code": "<string>",
"type": 0,
"guild": {
"id": "<string>",
"name": "<string>",
"splash_card_alignment": 0,
"features": [
"<string>"
],
"icon": "<string>",
"banner": "<string>",
"banner_width": 1073741823,
"banner_height": 1073741823,
"splash": "<string>",
"splash_width": 1073741823,
"splash_height": 1073741823,
"embed_splash": "<string>",
"embed_splash_width": 1073741823,
"embed_splash_height": 1073741823
},
"channel": {
"id": "<string>",
"type": 1073741823,
"name": "<string>",
"recipients": [
{
"username": "<string>"
}
]
},
"member_count": 1073741823,
"presence_count": 1073741823,
"temporary": true,
"created_at": "2023-11-07T05:31:56Z",
"uses": 1073741823,
"max_uses": 1073741823,
"max_age": 1073741823,
"inviter": {
"id": "<string>",
"username": "<string>",
"discriminator": "<string>",
"global_name": "<string>",
"avatar": "<string>",
"avatar_color": 1073741823,
"flags": 1073741823,
"bot": true,
"system": true
},
"expires_at": "2023-11-07T05:31:56Z"
}