DiscordRep API V3 The official documentation of DiscordRep's API
To get a token , please join our discord , use the command-api gen
in #bot-commands
Reputation
GET
https://discordrep.com/api/v3/rep/:id
Path Parameters
200 401 429
Copy {
"id" : "538855659714641960" ,
"upvotes" : 23 ,
"downvotes" : 0 ,
"xp" : 19987 ,
"rank" : "Diamond" ,
"staff" : true ,
}
Copy {
"code" : 401 ,
"error" : "unauthorized"
}
Copy {
"code" : 429 ,
"error" : "Too Many Requests"
}
Infractions
GET
https://discordrep.com/api/v3/infractions/:id
Path Parameters
200 user successfully fetched. 401 Invalid API key 429
Copy {
"id" : "user_id" ,
"type" : "WARN" , // or "BAN"
"reason" : "Sending IP logger in DM" ,
"moderator" : "256974278283624451" ,
"date" : 1587074377175
}
/* CLEAN example */
{
"id" : "user_id" ,
"type" : "CLEAN"
}
Copy {
"code" : 401 ,
"error" : "unauthorized"
}
Copy {
"code" : 429 ,
"error" : "Too Many Requests"
}
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
200 vote registered 400 Invalid action parameter 401 Invalid TRUST API key 403 voter_id is banned and can't vote 404 invalid voted_id 409 vote with same action already exists 429 ratelimit
Copy {"code": 200, "message": "success"}
Copy {"code": 400, "error": "Bad Request"}
Copy { "code" : 401 , "error" : "unauthorized" }
Copy { "code" : 403 , "error" : "the voter is banned, and cant vote" }
Copy { "code" : 404 , "error" : "user not found" }
Copy { "code" : 409 , "error" : "already downvoted" }
{ "code" : 409 , "error" : "already upvoted" }
{ "code" : 409 , "error" : "cannot vote for yourself" }
Copy { "code" : 429 , "error" : "Too Many Requests, slow down!" }
POST
https://discordrep.com/api/v3/comment/:commenter_id/:commentee_id
THIS REQUIRES A SPECIAL TRUST TOKEN
Path Parameters
Request Body
200 400 if comment is too short or invalid 401 Invalid TRUST API key 403 the commenter is banned 404 a user is not found 409 cannot comment yourself 429 ratelimit
Copy { "code" : 200 , "message" : "success" }
Copy { "code" : 400 , "error" : "comment too short" }
Copy { "code" : 401 , "error" : "unauthorized" }
Copy { "code" : 403 , "error" : "the commenter is banned, and cannot comment" }
Copy { "code" : 404 , "error" : "user not found" }
Copy { "code" : 409 , "error" : "cannot comment for yourself" }
Copy { "code" : 429 , "error" : "Too Many Requests, slow down!" }
Bio
POST
https://discordrep.com/api/v3/bio/:id
THIS REQUIRES A SPECIAL TRUST TOKEN
Path Parameters
Request Body
200 400 Bio too short or invalid 401 Invalid TRUST API key 404 429
Copy { "code" : 200 , "message" : "success" }
Copy { "code" : 400 , "error" : "bad request" }
Copy { "code" : 401 , "error" : "unauthorized" }
Copy { "code" : 404 , "error" : "user not logged in" }
Copy { "code" : 429 , "error" : "Too Many Requests, slow down!" }