Query User
The main API call when using the STORM API.
GET /users
Parameters
Key
Value
discordId
Response
{
"code": 200,
"username": "Display Name (username)", # Discord display and username returned.
"reputation": 0, # Reputation (out of 100).
"reputationImage": "https://stormsystems.org/assets/images/reputation/0.png",
"accolades": [], # Accolades include STORM Partner, Staff etc.
"deductions": 4, # The number of deductions someone has.
"profile": false # Will only show as a URL if they have a public profile.
}This is a correct (OK) response which returns all the available data back.
Example URL/users?discordId=1234568910
{
"code": 400,
"message": "Bad request. Required argument 'discordId' is missing."
}Missing the discordId header to specify which user to query.
{
"code": 401,
"message": "Unauthorized. Invalid or msising API key."
}Missing API Access. See 'API Access' on Introduction.
{
"code": 405,
"message": "Method Not Allowed. Only GET requests are supported."
}Invalid request type. Must be GET.
{
"code": 429,
"message": "Too Many Requests. Rate limit exceeded. Please try again later."
}Rate limit exceeded. See Rate Limiting or contact STORM Team.
Last updated