Create Ban
curl --request POST \
--url https://api.sentineltrustplay.io/v1/bans \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'X-Game-Id: <x-game-id>' \
--data '
{
"device_id": "<string>",
"ban_type": "<string>",
"scope": "<string>",
"reason_code": "<string>",
"expires_at": "<string>",
"details": {},
"idempotency_key": "<string>"
}
'import requests
url = "https://api.sentineltrustplay.io/v1/bans"
payload = {
"device_id": "<string>",
"ban_type": "<string>",
"scope": "<string>",
"reason_code": "<string>",
"expires_at": "<string>",
"details": {},
"idempotency_key": "<string>"
}
headers = {
"Authorization": "<authorization>",
"X-Game-Id": "<x-game-id>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
'X-Game-Id': '<x-game-id>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
device_id: '<string>',
ban_type: '<string>',
scope: '<string>',
reason_code: '<string>',
expires_at: '<string>',
details: {},
idempotency_key: '<string>'
})
};
fetch('https://api.sentineltrustplay.io/v1/bans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sentineltrustplay.io/v1/bans",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'device_id' => '<string>',
'ban_type' => '<string>',
'scope' => '<string>',
'reason_code' => '<string>',
'expires_at' => '<string>',
'details' => [
],
'idempotency_key' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"X-Game-Id: <x-game-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sentineltrustplay.io/v1/bans"
payload := strings.NewReader("{\n \"device_id\": \"<string>\",\n \"ban_type\": \"<string>\",\n \"scope\": \"<string>\",\n \"reason_code\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"details\": {},\n \"idempotency_key\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("X-Game-Id", "<x-game-id>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sentineltrustplay.io/v1/bans")
.header("Authorization", "<authorization>")
.header("X-Game-Id", "<x-game-id>")
.header("Content-Type", "application/json")
.body("{\n \"device_id\": \"<string>\",\n \"ban_type\": \"<string>\",\n \"scope\": \"<string>\",\n \"reason_code\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"details\": {},\n \"idempotency_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sentineltrustplay.io/v1/bans")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["X-Game-Id"] = '<x-game-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"device_id\": \"<string>\",\n \"ban_type\": \"<string>\",\n \"scope\": \"<string>\",\n \"reason_code\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"details\": {},\n \"idempotency_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ban_id": 1,
"device_id": "dvc_abc123",
"ban_type": "cheat",
"scope": "game",
"publisher_id": "pub_acme",
"game_id": "game_fps_01",
"status": "created"
}
{
"ban_id": 1,
"device_id": "dvc_abc123",
"ban_type": "cheat",
"scope": "game",
"publisher_id": "pub_acme",
"game_id": "game_fps_01",
"status": "idempotent_ok"
}
Bans
Create Ban
Create a new ban on a device.
POST
/
v1
/
bans
Create Ban
curl --request POST \
--url https://api.sentineltrustplay.io/v1/bans \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'X-Game-Id: <x-game-id>' \
--data '
{
"device_id": "<string>",
"ban_type": "<string>",
"scope": "<string>",
"reason_code": "<string>",
"expires_at": "<string>",
"details": {},
"idempotency_key": "<string>"
}
'import requests
url = "https://api.sentineltrustplay.io/v1/bans"
payload = {
"device_id": "<string>",
"ban_type": "<string>",
"scope": "<string>",
"reason_code": "<string>",
"expires_at": "<string>",
"details": {},
"idempotency_key": "<string>"
}
headers = {
"Authorization": "<authorization>",
"X-Game-Id": "<x-game-id>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
'X-Game-Id': '<x-game-id>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
device_id: '<string>',
ban_type: '<string>',
scope: '<string>',
reason_code: '<string>',
expires_at: '<string>',
details: {},
idempotency_key: '<string>'
})
};
fetch('https://api.sentineltrustplay.io/v1/bans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sentineltrustplay.io/v1/bans",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'device_id' => '<string>',
'ban_type' => '<string>',
'scope' => '<string>',
'reason_code' => '<string>',
'expires_at' => '<string>',
'details' => [
],
'idempotency_key' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"X-Game-Id: <x-game-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sentineltrustplay.io/v1/bans"
payload := strings.NewReader("{\n \"device_id\": \"<string>\",\n \"ban_type\": \"<string>\",\n \"scope\": \"<string>\",\n \"reason_code\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"details\": {},\n \"idempotency_key\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("X-Game-Id", "<x-game-id>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sentineltrustplay.io/v1/bans")
.header("Authorization", "<authorization>")
.header("X-Game-Id", "<x-game-id>")
.header("Content-Type", "application/json")
.body("{\n \"device_id\": \"<string>\",\n \"ban_type\": \"<string>\",\n \"scope\": \"<string>\",\n \"reason_code\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"details\": {},\n \"idempotency_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sentineltrustplay.io/v1/bans")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["X-Game-Id"] = '<x-game-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"device_id\": \"<string>\",\n \"ban_type\": \"<string>\",\n \"scope\": \"<string>\",\n \"reason_code\": \"<string>\",\n \"expires_at\": \"<string>\",\n \"details\": {},\n \"idempotency_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ban_id": 1,
"device_id": "dvc_abc123",
"ban_type": "cheat",
"scope": "game",
"publisher_id": "pub_acme",
"game_id": "game_fps_01",
"status": "created"
}
{
"ban_id": 1,
"device_id": "dvc_abc123",
"ban_type": "cheat",
"scope": "game",
"publisher_id": "pub_acme",
"game_id": "game_fps_01",
"status": "idempotent_ok"
}
string
required
API key as Bearer token:
Bearer sni_<your-key>. Sent by client.string
required
Game identifier. Sent by client.
string
required
The device to ban.
string
required
Type of ban:
cheat or social.string
required
Ban scope:
game, publisher, or global.string
required
Application-defined reason code (e.g.,
aimbot, harassment).string
ISO 8601 expiry timestamp.
null for permanent bans.object
Arbitrary JSON metadata to store with the ban.
string
Prevents duplicate bans. If a ban with this key exists for the same publisher+game, returns the existing ban.
{
"ban_id": 1,
"device_id": "dvc_abc123",
"ban_type": "cheat",
"scope": "game",
"publisher_id": "pub_acme",
"game_id": "game_fps_01",
"status": "created"
}
{
"ban_id": 1,
"device_id": "dvc_abc123",
"ban_type": "cheat",
"scope": "game",
"publisher_id": "pub_acme",
"game_id": "game_fps_01",
"status": "idempotent_ok"
}
