DiscordRep API

get user info and reputation

get
Reputation

https://discordrep.com/api/rep/id?authorization=key
Request
Response
Request
Path Parameters
id
required
string
ID of user to fetch
Query Parameters
authorization
required
string
API key
Response
200: OK
{
"id":"538855659714641960",
"upvotes":13,
"downvotes":0,
"reputation":3,
"xp":12409,
"staff": true
}
401: Unauthorized
{
"code":"401",
"error":"unauthorized"
}
404: Not Found
{
"code":"404",
"error":"User not found"
}
429: Too Many Requests
{
"code":"429",
"error": "Too Many Requests"
}

get
Users

https://discordrep.com/api/u/id?authorization=key
Request
Response
Request
Path Parameters
id
required
string
ID of the user to fetch.
Query Parameters
authorization
required
string
API key
Response
200: OK
user successfully fetched.
{
"id":"538855659714641960",
"bio":":sweat_smile:",
"donator":0,
"partner":false,
"admin":true,
"mod":false
}
401: Unauthorized
Invalid API key
{
"code":"401",
"error":"unauthorized"
}
404: Not Found
Could not find a user matching this query.
{
"code":"404",
"error":"User not found"
}
429: Too Many Requests
{
"code":"429",
"error": "Too Many Requests"
}

get
Bans

https://discordrep.com/api/bans/id?authorization=key
Request
Response
Request
Path Parameters
id
required
string
ID of the user
Query Parameters
authorization
required
string
API key
Response
200: OK
Ban found
{
"id": "678912395614195123",
"reason": "Scammer",
"moderator": "538855659714641960",
"date":1568730054259
}
401: Unauthorized
Invalid API key
{
"code":"401",
"error":"unauthorized"
}
404: Not Found
{
"code":"404",
"error":"Ban not found"
}
429: Too Many Requests
{
"code":"429",
"error": "Too Many Requests"
}

get
Warns

https://discordrep.com/api/warns/id?authorization=key
Request
Response
Request
Path Parameters
id
required
string
ID of the user
Query Parameters
authorization
required
string
API key
Response
200: OK
{
"id": "678912395614195123",
"reason": "Probable scammer",
"moderator": "538855659714641960",
"date":1568730054259
}
401: Unauthorized
Invalid API key
{
"code":"401",
"error":"unauthorized"
}
404: Not Found
{
"code": "404",
"error": "Warn not found"
}
429: Too Many Requests
{
"code":"429",
"error": "Too Many Requests"
}

post
Vote

https://discordrep.com/api/vote/:action/:voter_id/:voted_id?authorization=key
THIS REQUIRES A SPECIAL TRUST TOKEN
Request
Response
Request
Path Parameters
action
required
string
can only be: "up" for upvote "down" for downvote
voter_id
required
string
The id of the user who is voting.
voted_id
required
string
The id of the user who is getting voted to.
Query Parameters
authorization
required
string
API Key
Response
200: OK
vote registered
{"code": "200","message": "success"}
400: Bad Request
Invalid action parameter
{"code": "400","error": "Bad Request"}
403: Forbidden
voter_id is banned and can't vote
{"code": "403","error": "the voter is banned, and cant vote"}
404: Not Found
invalid voted_id
{"code": "404","error": "user not found"}
409: Conflict
vote with same action already exists
{"code": "409","error": "already downvoted"}
{"code": "409","error": "already upvoted"}
429: Too Many Requests
rate limit
{"code":"429", "error":"Too Many Requests, slow down!" }

How do you get the "Trust Token"? Short answer, you simply don't. This is limited to staff members and trusted partnered Bots&Websites.