Servers
These API endpoints are related to servers on IBL
servers/@allGet All Servers
Gets all servers on the list. Returns a set of paginated IndexServer objects
Query Parameters
pagestring
The page number
Success
servers/@randomGet Random Servers
Returns a list of servers from the database in random order
Success
servers/@indexGet Servers Index
Gets the index of the server-side of the list. Returns a ListIndexServer object
Success
servers/metaGet Server Meta
Resolves a Discord invite link to a preview of the server it points to (name, icon, member counts, and whether it's already listed), without adding it to the database. Used by Add Server to show the server being added before the user submits.
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Query Parameters
inviteRequiredstring
The Discord invite link or code to resolve
Success
serversAdd Server
Adds a server to the database from an invite link. Resolves the guild via the invite (the tracking bot does not need to already be in the server). Returns 204 on success
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Request Body
application/jsonRequiredextra_linksarray<object>
invitestring
longstring
nsfwboolean
shortstring
tagsarray<string>
team_ownerstring
Success
servers/{id}Get Server
Gets a server by id
Path Parameters
idRequiredstring
The servers ID
Query Parameters
targetstring
The target page of the request if any.
If target is 'page', then unique clicks will be counted based on a SHA-256 hashed IP
If target is 'invite', then the invite will be counted as a click
Officially recognized targets:
- page -> server page view
- settings -> server settings page view
- invite -> server invite view
includestring
What extra fields to include, comma-seperated.
long => server long description
team_includesstring
What entities of the servers team to include
Success
servers/{id}/seoGet Server SEO Info
Gets the minimal SEO information about a server for embed/search purposes. Used by v4 website for meta tags
Path Parameters
idRequiredstring
The server ID
Success
servers/{id}/settingsUpdate Server Settings
Updates a servers settings. You must have 'Edit Server Settings' in the team if the bot is in a team. Returns 204 on success
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Server-Auth<token>
Requires a server API session token. Should be prefixed with Server in Authorization header.
In: header
Request Body
application/jsonRequiredcaptcha_opt_outboolean
extra_linksarray<object>
login_required_for_inviteboolean
Whether the server requires a login to be invited to it
longstring
nsfwboolean
shortstring
show_emojisboolean
Whether to show this server's emojis and stickers on its listing page. Requires the tracking bot to be in the server to actually have anything to show
statestring
"public" | "private" | "unlisted" | "defunct"tagsarray<string>
Path Parameters
idRequiredstring
Server ID
Success