Bans API
Advanced and powerful global ban list API
Add a Ban
POST
https://api.ksoft.si/bans/add
This endpoint allows you to add bans to the list. If you don't have BAN_MANAGER
permission your ban will be automatically converted to a ban report and we will take a look and act accordingly.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authentication token |
Request Body
Name | Type | Description |
---|---|---|
user | number | Users Discord ID that you are banning/reporting |
mod | number | Users Discord ID who posted/reported the ban |
user_name | string | Users Discord username |
user_discriminator | number | Users Discord discriminator |
reason | string | Reason why user should be globally banned |
proof | string | URL of the image showing the act |
appeal_possible | boolean | If appeal should be disabled for that user. |
Get ban info
GET
https://api.ksoft.si/bans/info
Get more information about a ban
Query Parameters
Name | Type | Description |
---|---|---|
user | number | Users Discord ID who's ban you'd like to check |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authentication token |
Check user
GET
https://api.ksoft.si/bans/check
Simple way to check if the user is banned
Query Parameters
Name | Type | Description |
---|---|---|
user | number | Users Discord ID that you'd like to check |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authentication token |
Delete ban
DELETE
https://api.ksoft.si/bans/delete
Delete a ban, only users with BAN_MANAGER
permission can use this.
Query Parameters
Name | Type | Description |
---|---|---|
user | number | Users Discord ID |
force | boolean | Default: false, if true it deletes the entry from the database instead of deactivating |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authentication token |
List of bans
GET
https://api.ksoft.si/bans/list
Pagination of bans, you can request up to 1000 records per page, default is 20.
Query Parameters
Name | Type | Description |
---|---|---|
page | integer | Page number (default: 1) |
per_page | integer | Number of bans per page (default: 20) |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authentication token |
Ban updates
GET
https://api.ksoft.si/bans/updates
Gets updates from the previous update
Query Parameters
Name | Type | Description |
---|---|---|
timestamp | number | timestamp in seconds from 1.1.1970 (epoch time) |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authentication token |
Last updated