Invite Object
Represents a code that when used, adds a user to a guild or group DM channel.Invite Structure
* This is a partial role object that only contains
id, name, position, color, colors, icon, and unicode_emoji.
Invite Types
Invite Target Types
Guild Invite Flags
Example Invite Object
Invite Metadata Object
Extra information about an invite, will extend the invite object.Invite Metadata Structure
Example Invite Metadata
Invite Stage Instance Object
Invite Stage Instance Structure
Example Invite Stage Instance
Get Invite
Returns an invite object for the given code.Query String Params
Delete Invite
Delete an invite. Requires theMANAGE_CHANNELS permission on the channel this invite belongs to, or MANAGE_GUILD to remove any invite across the guild. Returns an invite object on success. Fires an Invite Delete Gateway event.
This endpoint supports the
X-Audit-Log-Reason header.Get Target Users
Gets the users allowed to see and accept this invite. Response is a CSV file with the headeruser_id and each user ID on its own line. Requires the caller to be the inviter, or have MANAGE_GUILD permission, or have VIEW_AUDIT_LOG permission.
Add Target User
Adds a target user to an existing invite. Requires the caller to be the inviter or have theMANAGE_GUILD permission. Returns a 204 empty response on success.
Remove Target User
Removes a target user from an existing invite. Requires the caller to be the inviter or have theMANAGE_GUILD permission. Returns a 204 empty response on success.
Update Target Users
Updates the users allowed to see and accept this invite. Uploading a file with invalid user IDs will result in a 400 with the invalid IDs described. Requires the caller to be the inviter or have theMANAGE_GUILD permission.
Form Params
Example Error Response
Bulk-Add Target Users
Adds multiple target users to an existing invite. Requires the caller to be the inviter or have theMANAGE_GUILD permission. Returns a 204 empty response on success.
JSON Params
Bulk-Delete Target Users
Removes multiple target users from an existing invite. Requires the caller to be the inviter or have theMANAGE_GUILD permission. Returns a 204 empty response on success.
JSON Params
Get Target Users Job Status
Processing target users from a CSV when creating or updating an invite is done asynchronously. This endpoint allows you to check the status of that job. Requires the caller to be the inviter, or haveMANAGE_GUILD permission, or have VIEW_AUDIT_LOG permission.