Using the ModBot API

Most bots keep a lot of information about your server, wouldn't it be nice to be able to access that data? Well, ModBot has an easy to use API, opt your server into the API by running the command -api on, and that's it!



Click on any of the options below to see an example response


Base URl: https://modbot.xyz

GET: /api/v1/warns/{guildId}


Get all the warnings for the server with the given ID

GET: /api/v1/warns/{guildId}/{userId}


Get all the warnings for the user with the given ID in the server with the given ID

GET: /api/v1/mutes/{guildId}


Get the mute information about the guild with the given ID

GET: /api/v1/guild/{guildId}


Get all the information ModBot has saved for the server with the given ID

GET: /api/v1/guild/{guildId}/rules


Get the rules for the server with the given ID

GET: /api/v1/guild/{guildId}/welcomeMessage


Get the welcome message for the server with the given ID

GET: /api/v1/guild/{guildId}/roles


Get all of the roles for the server with the given ID

GET: /api/v1/guild/{guildId}/channels


Get all of the channels for the server with the given ID