Bans

get
Get all bans

https://plugin.tebex.io/bans
Returns an array of all bans on your account.
Request
Response
Headers
X-Tebex-Secret
required
string
The secret key of a server.
200: OK
{
"data": [
{
"id": 2,
"time": "2017-08-17T14:57:50+00:00",
"ip": "",
"payment_email": "",
"reason": "Because of fraud",
"user": {
"ign": "test0",
"uuid": "45611b2c5d284dfc96f65fa77d2a4f57"
}
}
]
}

post
Create a ban

https://plugin.tebex.io/bans
Create a ban against a player or/and IP address.
Request
Response
Headers
X-Tebex-Secret
required
string
The secret key of a server.
Body Parameters
reason
optional
string
The reason for the ban.
ip
optional
string
The IP address to also ban.
user
required
string
The username or UUID of the player to ban.
200: OK
{
"data": {
"id": 2,
"time": "2017-08-17T14:57:50+00:00",
"ip": "",
"payment_email": "",
"reason": "Because banned",
"user": {
"ign": "test0",
"uuid": "45611b2c5d284dfc96f65fa77d2a4f57"
}
}
}