Skip to main content

Level System

Manage and retrieve user XP data in a level system for your Discord guild.

GET
Get User XP
https://yunite.xyz/api/v3/api/v3/guild/{serverID}/levelsystem/user/{discordId}
Path Parameters
NameValue typeDescription
serverIDGuild ID SnowflakeThe ID of the guild you want to access
discordIdDiscord User IDThe ID of the user whose XP you want to access

PUT
Set User XP
https://yunite.xyz/api/v3/api/v3/guild/{serverID}/levelsystem/user/{discordId}Path Parameters
NameValue typeDescription
serverIDGuild ID SnowflakeThe ID of the guild you want to access
discordIdDiscord User IDThe ID of the user whose XP you want to set
Request Body
{
    "type": "long",
    "value": "XP to set"
}
info

Use content type application/json for the request body.


POST
Add User XP
https://yunite.xyz/api/v3/api/v3/guild/{serverID}/levelsystem/user/{discordId}/addPath Parameters
NameValue typeDescription
serverIDGuild ID SnowflakeThe ID of the guild you want to access
discordIdDiscord User IDThe ID of the user whose XP you want to add to
Request Body
{
    "type": "long",
    "value": "XP to add (can be negative to subtract)"
}
info

Use content type application/json for the request body.

tip

You can use negative values to subtract XP.


GET
Get Leaderboard
https://yunite.xyz/api/v3/api/v3/guild/{serverID}/levelsystem/leaderboard
Path Parameters
NameValue typeDescription
serverIDGuild ID SnowflakeThe ID of the guild you want to access