Welcome to the official DanBot Hosting Bots API!
This is the server-side project that allows users to add their own bot into our Community Server!
Warning
This project is still in a testing stage. It should be good enough for production, but bugs may occur.
The main index page.
200
- Successfully connected to the API.- Content-Type:
application/json
- Body:
{ message: "Welcome to DBH's Bot API!" }
- Content-Type:
Creates a new API key.
Important
All URL params are required.
discordid
[string] - The bot's Discord IDkey
[string] - The admin API key, only select people have this.
-
201
- Successfully created a new API key.- Content-Type:
application/json
- Body:
{ result: [Your API Key] }
- Content-Type:
-
400/403
- Bad request. You're missing a URL param or something else went wrong.- Content-Type:
application/json
- Body:
{ error: [The error] }
- Content-Type:
Removes an API key.
Caution
All associated data with the API key will be removed. Be careful removing a key.
Important
All URL params are required.
discordid
[string] - The bot's Discord IDkey
[string] - The admin API key, only select people have this.
-
201
- Successfully removed the API key.- Content-Type:
application/json
- Body:
{ result: "Key data deleted!" }
- Content-Type:
-
400/403
- Bad request. You're missing a URL param or something else went wrong.- Content-Type:
application/json
- Body:
{ error: [The error] }
- Content-Type:
Adds a bot to the API/database.
Important
All URL params are required.
Note
Needs to be sent from a DBH node.
discordid
[string] - The bot's Discord IDownerid
[string] - The owner's Discord IDapikey
[string] - The API key you received from running/generate-bot-api-key
.name
[string] - The bot's nameavatar
[string] - The bot's avatar URLusers
[integer] - The bot's user countguilds
[integer] - The bot's guild countshards
[integer] - The bot's shard count
-
201
- Successfully added the bot.- Content-Type:
application/json
- Body:
{ result: "Success!" }
- Content-Type:
-
400/403
- Bad request. You're missing a URL param or something else went wrong.- Content-Type:
application/json
- Body:
{ error: [The error] }
- Content-Type:
Get a bot's data.
Important
All URL params are required.
discordid
[string] - The bot's Discord IDuserid
[string] - The Discord bot's owner's IDapikey
[string] -The API key you received from running/generate-bot-api-key
.
-
200
- Successfully got the bot's data.- Content-Type:
application/json
- Body:
{ result: { [The bot's data] } }
- Content-Type:
-
400/403
- Bad request. You're missing a URL param or something else went wrong.- Content-Type:
application/json
- Body:
{ error: [The error] }
- Content-Type:
Get all bot's data.
Important
All URL params are required.
discordid
[string] - The bot's Discord IDuserid
[string] - The Discord bot's owner's IDapikey
[string] - The API key you received from running/generate-bot-api-key
.
-
200
- Successfully got all bots' data.- Content-Type:
application/json
- Body:
{ result: { [All bot's data] } }
- Content-Type:
-
400/403
- Bad request. You're missing a URL param or something else went wrong.- Content-Type:
application/json
- Body:
{ error: [The error] }
- Content-Type:
Note
Found a bug? Open a GitHub Issue. Found a vulnerability? Open a ticket in our Discord Server (Soon enough on a support website!)
Made with ❤️ by DanBot Hosting.