Skip to main content
GET
/
invites
/
{code}
cURL
curl --request GET \
  --url https://discord.com/api/v10/invites/{code} \
  --header 'Authorization: <api-key>'
{
  "type": 2,
  "code": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "channel": "<unknown>",
  "inviter": {
    "id": "<string>",
    "username": "<string>",
    "avatar": "<string>",
    "discriminator": "<string>",
    "public_flags": 123,
    "flags": 0,
    "global_name": "<string>",
    "primary_guild": "<unknown>",
    "bot": true,
    "system": true,
    "banner": "<string>",
    "accent_color": 123,
    "avatar_decoration_data": "<unknown>",
    "collectibles": "<unknown>"
  },
  "max_age": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "friends_count": 123,
  "is_contact": true,
  "uses": 123,
  "max_uses": 123,
  "flags": 123
}

Authorizations

Authorization
string
header
required

Discord bot token

Path Parameters

code
string
required
Maximum string length: 152133

Query Parameters

with_counts
boolean
guild_scheduled_event_id
string<snowflake>

Response

200 response for invite_resolve

type
enum<integer>
required
Available options:
2
code
string
required
expires_at
string<date-time> | null
required
channel
object
required
inviter
object
max_age
integer<int32>
created_at
string<date-time>
friends_count
integer<int32>
is_contact
boolean
uses
integer<int32>
max_uses
integer<int32>
flags
integer<int32>