👨‍💻 API

Note, most of these endpoints won't be open to the public, but if you own the ender.site domain, you can use them at free will.

get
Free Tea

https://api.ender.site
This endpoint allows you to get free tea.
Request
Response
200: OK
{
"message":"Naw man, no tea for you.",
}
418: I'm a teapot
Tea successfully retrieved.
{
"message":"I'm a teapot",
"message2":"So am I!",
"message3":"Really?",
"message4":"Yeah!",
"message5":"Woah that's awesome.",
"message6":"Here's a teapot: https://api.ender.site/teapot"
}

get
View a channel

https://api.ender.site/c/:channelId
Display data on a discord channel.
Request
Response
Query Parameters
channelId
required
string
Provide a valid channel ID.
200: OK
{
"type":"text",
"deleted":false,
"id":"0123456789010",
"name":"general",
"rawPosition":1,
"parentID":"00000000000000",
"topic":"Testing channel!",
"nsfw":false,
"lastMessageID":"000000000000000",
"rateLimitPerUser":0,
"lastPinTimestamp":1420070400,
"guild":"525056817399726102",
"createdTimestamp":315536400
}

get
Dashboard: Select a guild

https://api.ender.site/selectGuild
Endpoint for the select guild page.
Request
Response
Headers
Authorization
required
string
Token returned from Discord's OAuth
200: OK

get
Dashboard

https://api.ender.site/dash/:id
Authorization required. Main dashboard page.
Request
Response
Headers
Authorization
required
string
Authorization header
Query Parameters
ID
required
string
Tells the server which dashboard to load.
200: OK
:^) This should change based on your auth token and ID.

get
Bot

https://api.ender.site/bot/:guildId
Checks if the bot is in the guild
Request
Response
Query Parameters
guildId
optional
string
Which guild ID to check.
200: OK
Bot is in guild
{"bot":1}
403: Forbidden
Either bot has no permission to see guild, or bot is not in server.
{"bot":0}