Votes
These API endpoints are related to votes and voting on IBL
votes/credit-tiersGet General Vote Credit Tiers
Returns a list of all currently available vote credit tiers sorted in ascending order
Query Parameters
target_typestring
The target type to filter by. If unset, will not filter by target type.
Success
{target_type}/{target_id}/votes/credit-tiersGet Vote Credit Tiers
Returns a summary of the tiers and the slab based breakdown of votes for a given entity
Path Parameters
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID of the entity
Success
{target_type}/{target_id}/votes/creditsGet Vote Redeem Logs
Returns a summary of the vote credit redeem logs
Path Parameters
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID of the entity
Success
{target_type}/{target_id}/votes/creditsRedeem Vote Credits
Redeems votes into credits towards the shop based on the vote credit tiers
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Bot-Auth<token>
Requires a bot token. Should be prefixed with Bot in Authorization header.
In: header
Server-Auth<token>
Requires a server API session token. Should be prefixed with Server in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Path Parameters
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID of the entity
Query Parameters
votesRequiredstring
The number of votes to redeem
Success
users/{uid}/{target_type}/{target_id}/votes/@allGet All User Votes
Gets all votes (paginated by 10) of a user on an entity. This endpoint is currently public as the same data can be found through #vote-logs in discord. Note that for compatibility, a trailing 's' is removed
Path Parameters
uidRequiredstring
The users ID
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID of the entity
Query Parameters
pagestring
The page number
Success
{target_type}/{target_id}/votes/user-listGet Votes User List
Gets the full list of all users who have voted for the entity on Discord as a list of snowflakes. Note that for compatibility, a trailing 's' is removed. This method does not require authentication as it is easily publicly available through other means
Path Parameters
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID of the entity
Query Parameters
pagestring
The page number (if pagination is desired, otherwise sends all results)
Success
users/{uid}/{target_type}/{target_id}/votesGet User Entity Votes
Gets all valid (current) votes a user has made for an entity
Path Parameters
uidRequiredstring
The users ID
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID
Success
users/{uid}/{target_type}/{target_id}/votesCreate Entity Vote
Creates a vote for an entity. Returns 204 on success. Note that for compatibility, a trailing 's' is removed
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Path Parameters
uidRequiredstring
The users ID
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID
Query Parameters
upvoteRequiredstring
Whether or not to upvote the entity. Must be either true or false
Success