DiscordRep API V3

The official documentation of DiscordRep's API

To get a token, please join our discord, use the command-api genin #bot-commands

Reputation

GET https://discordrep.com/api/v3/rep/:id

Path Parameters

NameTypeDescription

id

string

User ID to look up

Headers

NameTypeDescription

Authorization

string

API key

{
  "id": "538855659714641960",
  "upvotes": 23,
  "downvotes": 0,
  "xp": 19987,
  "rank": "Diamond",
  "staff": true,
}

Infractions

GET https://discordrep.com/api/v3/infractions/:id

Path Parameters

NameTypeDescription

id

string

User ID to lookup

Headers

NameTypeDescription

Authorization

string

API key

{
  "id": "user_id",
  "type": "WARN", // or "BAN"
  "reason": "Sending IP logger in DM",
  "moderator": "256974278283624451",
  "date": 1587074377175
}
/* CLEAN example */
{
  "id": "user_id",
  "type": "CLEAN"
}

Everything below requires a trust token

How do you get a trust token? Short answer. You simply don't get a trust token. This is only given to trusted users, such as staff or known developers.

Vote

POST https://discordrep.com/api/v3/vote/:action/:voter_id/:voted_id

THIS REQUIRES A SPECIAL TRUST TOKEN

Path Parameters

NameTypeDescription

action

string

Only: "up" for upvote "down" for downvote

voter_id

string

User ID of user voting

voted_id

string

User ID of user being voted

Headers

NameTypeDescription

Authorization

string

API key

{"code": 200, "message": "success"}

Comment

POST https://discordrep.com/api/v3/comment/:commenter_id/:commentee_id

THIS REQUIRES A SPECIAL TRUST TOKEN

Path Parameters

NameTypeDescription

commenter_id

string

User ID of user commenting

commentee_id

string

User ID of user being commented

Headers

NameTypeDescription

Authorization

string

API Key

Request Body

NameTypeDescription

comment

string

The comment

{"code": 200, "message": "success"}

Bio

POST https://discordrep.com/api/v3/bio/:id

THIS REQUIRES A SPECIAL TRUST TOKEN

Path Parameters

NameTypeDescription

id

string

User ID

Headers

NameTypeDescription

Authorization

string

API Key

Request Body

NameTypeDescription

bio

string

The bio

{"code": 200,"message": "success"}

Last updated