-
Notifications
You must be signed in to change notification settings - Fork 0
API Routes
Jerry edited this page Mar 21, 2025
·
4 revisions
Discord Developer Docs: https://discord.com/developers/docs/
Returns UserID by DiscordID
GET /api/uuid
| Name | Type | Description |
|---|---|---|
| method | String |
Method to search for record in database. uid or discord, this one influences on what value id is waiting for. |
| id | String |
ID to search record by in database. Set this according to method
|
Authorization: Bearer TOKEN
{
"uuid": "UUIDHERE"
}Returns identify scope from discord as JSON
GET /api/identify
| Name | Type | Description |
|---|---|---|
| method | String |
Method to search for record in database. uid or discord, this one influences on what value id is waiting for. |
| id | String |
ID to search record by in database. Set this according to method
|
Authorization: Bearer TOKEN
{
read discord docs...
}Returns roles of the user at certain guild.
GET /api/roles
| Name | Type | Description |
|---|---|---|
| method | String |
Method to search for record in database. uid or discord, this one influences on what value id is waiting for. |
| id | String |
ID to search record by in database. Set this according to method
|
| guildId | String |
Guild ID of the server to return roles from. |
Authorization: Bearer TOKEN
{
read discord docs...
}Returns guilds of the user.
GET /api/guilds
| Name | Type | Description |
|---|---|---|
| method | String |
Method to search for record in database. uid or discord, this one influences on what value id is waiting for. |
| id | String |
ID to search record by in database. Set this according to method
|
Authorization: Bearer TOKEN
{
read discord docs...
}Returns extra data of the user.
GET /api/extra
| Name | Type | Description |
|---|---|---|
| method | String |
Method to search for record in database. uid or discord, this one influences on what value id is waiting for. |
| id | String |
ID to search record by in database. Set this according to method
|
Authorization: Bearer TOKEN
Extra data as JSON
Patches user's extra data.
PATCH /api/extra
| Name | Type | Description |
|---|---|---|
| method | String |
Method to search for record in database. uid or discord, this one influences on what value id is waiting for. |
| id | String |
ID to search record by in database. Set this according to method
|
Authorization: Bearer TOKEN
Deletes user record from database.
POST /api/delete
| Name | Type | Description |
|---|---|---|
| method | String |
Method to search for record in database. uid or discord, this one influences on what value id is waiting for. |
| id | String |
ID to search record by in database. Set this according to method
|
Authorization: Bearer TOKEN
Generates link for authorization according to provided UUID.
GET /api/link
| Name | Type | Description |
|---|---|---|
| uid | String |
UserID from external app to generate link with |
None
{
"link": "AUTHORIZATION_LINK"
}