Registration Data

https://yunite.xyz/api/v2/servers/:GUILD_ID/regsys/single/byDiscordID/:USER_ID
Returns information about the linked Epic account of the given Discord user.
Request
Response
Request
Path Parameters
GUILD_ID
required
string
The ID of the target guild.
USER_ID
required
string
The ID of the user you want to get the link of.
Headers
Y-Api-Key
required
string
The API-Key corresponding to the guild you want to query.
Response
200: OK
{
"found":true, //all below is only included if this is true, otherwise the user ID has not been found
"discordID":"400634396581036035",
"isLinked":true, //all below is only included if this is true, otherwise there is no linked Epic user
"epicID":"89400e04ab8540bbb746a8c1e3f4dc0c",
"epicDisplayName":"foobar"
}

https://yunite.xyz/api/v2/servers/:GUILD_ID/regsys/single/byEpicID/:EPIC_ID
Returns information about the linked Discord account of the given Epic user.
Request
Response
Request
Path Parameters
GUILD_ID
required
string
The ID of the target guild.
EPIC_ID
required
string
The 32 digit hexadecimal Epic ID of the user you want to get the link of.
Headers
Y-Api-Key
required
string
The API-Key corresponding to the guild you want to query.
Response
200: OK
{
"found":true, //all below is only included if this is true, otherwise the user ID has not been found
"epicID":"89400e04ab8540bbb746a8c1e3f4dc0c",
"isLinked":true, //all below is only included if this is true, otherwise there is no linked Discord user
"discordID":"400634396581036035",
"discriminatedDiscordName":"foobar#1234"
}

https://yunite.xyz/api/v2/servers/:GUILD_ID/regsys/bulk/byDiscordID
Returns information about the linked Epic accounts of the given Discord users.
Request
Response
Request
Path Parameters
GUILD_ID
required
string
The ID of the target guild.
Headers
Y-Api-Key
required
string
The API-Key corresponding to the guild you want to query.
Body Parameters
Request Body
required
array
The request body should contain an array of the Discord IDs you want to query, for example: ["400634396581036035", "400634396581036035", ... ]
Response
200: OK
{
"users":[
{
"found":true, //always true; if not found, the ID is contained in "invalidIDs"
"discordID":"400634396581036035",
"isLinked":true, //all below is only included if this is true, otherwise there is no linked Discord user
"epicID":"89400e04ab8540bbb746a8c1e3f4dc0c",
"epicDisplayName":"foobar"
},
...,
{
"found":true,
"discordID":"400634396581036035",
"isLinked":true,
"epicID":"89400e04ab8540bbb746a8c1e3f4dc0c",
"epicDisplayName":"foobar"
}
],
"invalidIDs":[ //list of discord IDs that were not found
"400634396581036035",
"400634396581036035",
...,
"400634396581036035"
]
}

https://yunite.xyz/api/v2/servers/:GUILD_ID/regsys/bulk/byEpicID
Returns information about the linked Discord accounts of the given Epic user.
Request
Response
Request
Path Parameters
GUILD_ID
required
string
The ID of the target guild.
Headers
Y-Api-Key
required
string
The API-Key corresponding to the guild you want to query.
Body Parameters
Request Body
required
array
The request body should contain an array of the Epic IDs you want to query, for example: ["89400e04ab8540bbb746a8c1e3f4dc0c", "89400e04ab8540bbb746a8c1e3f4dc0c", ... ]
Response
200: OK
{
"users":[
{
"found":true, //always true; if not found, the ID is contained in "invalidIDs"
"epicID":"89400e04ab8540bbb746a8c1e3f4dc0c",
"isLinked":true, //all below is only included if this is true, otherwise there is no linked Discord user
"discordID":"400634396581036035",
"discriminatedDiscordName":"foobar#1234"
},
...,
{
"found":true,
"epicID":"89400e04ab8540bbb746a8c1e3f4dc0c",
"isLinked":true,
"discordID":"400634396581036035",
"discriminatedDiscordName":"foobar#1234"
}
],
"invalidIDs":[ //list of epic IDs that were not found
"89400e04ab8540bbb746a8c1e3f4dc0c",
"89400e04ab8540bbb746a8c1e3f4dc0c",
...,
"89400e04ab8540bbb746a8c1e3f4dc0c"
]
}