Users

Methods used retrieve info about users.

Base Url

https://botsfordiscord.com/api

get
user info

https://botsfordiscord.com/api/user/:id
Obtain JSON encoded information about a specific user.
Request
Response
Path Parameters
id
required
integer
The ID of the user you are requesting information on.
200: OK
The server has located the users information and displayed it.
The content of this response varies.
404: Not Found
The user you are requesting does not exist on the website.
{ message: 'User not found.' }

get
user bots

https://botsfordiscord.com/api/user/:id/bots
Request
Response
Path Parameters
id
required
integer
The ID of the user you are requesting information on.
200: OK
The server has located information about the user's bots and displayed it.
The content of this response varies.
404: Not Found
You may receive of the following 404 errors depending on your situation.
//The user you are requesting does not exist on the website:
{ message: 'User not found.' }
‚Äč
//The user you are requesting does not own any bots on the website:
{ bots: 'User has no bots.' }