Teams
These API endpoints are related to our teams system
teams/meta/permissionsGet Team Permissions
Gets all permissions that a team can have
Success
teams/{id}Get Team
Gets a team by ID
Path Parameters
idRequiredstring
Team ID
Query Parameters
targetsRequiredstring
Entities to get. Can be one of the following: team_member, bot, server. Comma-seperated
Success
teams/{id}/seoGet Team SEO Info
Gets the minimal SEO information about a team for embed/search purposes. Used by v4 website for meta tags
Path Parameters
idRequiredstring
The team ID, name or vanity
Success
teamsCreate Team
Creates a team. Returns a 201 with the team ID on success.
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Request Body
application/jsonRequiredextra_linksarray<object> | null
The team's links that it wishes to advertise
namestring
nsfwboolean | null
Whether the team is NSFW (primarily makes NSFW content)
shortstring | null
tagsarray<string> | null
Success
users/{id}/{target_type}/{target_id}/permsGet Entity Permissions
Returns the resolved permissions a user has on an entity
Path Parameters
idRequiredstring
The user's ID
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID of the entity
Success
teams/{tid}Edit Team Info
Edits a team. Returns a 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> | null
The team's links that it wishes to advertise
namestring
nsfwboolean | null
Whether the team is NSFW (primarily makes NSFW content)
shortstring | null
tagsarray<string> | null
Path Parameters
tidRequiredstring
Team ID
Success
teams/{tid}Delete Team
Deletes the team. Requires the 'Owner' permission. Returns a 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
Path Parameters
tidRequiredstring
Team ID
Success
teams/{tid}/membersAdd Team Member
Adds a member to a team. Returns a 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/jsonRequiredpermsarray<string>
The initial permissions to give to the user
user_idstring
The ID of the user to add to the team
Path Parameters
tidRequiredstring
Team ID
Success
teams/{tid}/members/{mid}Edit Team Member Permissions
Edits a members permissions on a team. Returns a 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/jsonRequireddata_holderboolean | null
Whether the user is a data holder responsible for all data on the team. That is, should performing mass-scale operations on them affect the team
mentionableboolean | null
Whether the user is mentionable Whether the user is mentionable (for alerts in bot-logs etc.)
permsarray<string> | null
The permissions to set. If empty, will not update
Path Parameters
tidRequiredstring
Team ID
midRequiredstring
Team Member ID
Success
teams/{tid}/members/{mid}Delete Team Member
Deletes a member from the team. Users can always delete themselves. Returns a 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
Path Parameters
tidRequiredstring
Team ID
midRequiredstring
Member ID
Success