User
Create Strike
Create a user strike for a Policy violation and get the resulting effective action.
POST
/
api
/
user
/
strike
cURL
curl --request POST \
--url 'https://eu.whitecircle.com/api/user/strike' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'whitecircle-version: 2025-12-01' \
--data '{"policy_id":"8d3d8fad-0df7-443f-a6df-5445e48a8eaf","severity_level_id":"f43f4c73-b2d9-48b8-a79f-868e3f958d37","id":"user-123","email":"user@example.com","external_session_id":"session-456"}'import requests
url = "https://eu.whitecircle.com/api/user/strike"
payload = {
"policy_id": "8d3d8fad-0df7-443f-a6df-5445e48a8eaf",
"severity_level_id": "f43f4c73-b2d9-48b8-a79f-868e3f958d37",
"id": "user-123",
"email": "user@example.com",
"ip": "203.0.113.10",
"external_session_id": "session-456",
"internal_session_id": "5f8a31d6-4b2f-4e61-88d5-cc537e4af79e"
}
headers = {
"whitecircle-version": "<whitecircle-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'whitecircle-version': '<whitecircle-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
policy_id: '8d3d8fad-0df7-443f-a6df-5445e48a8eaf',
severity_level_id: 'f43f4c73-b2d9-48b8-a79f-868e3f958d37',
id: 'user-123',
email: 'user@example.com',
ip: '203.0.113.10',
external_session_id: 'session-456',
internal_session_id: '5f8a31d6-4b2f-4e61-88d5-cc537e4af79e'
})
};
fetch('https://eu.whitecircle.com/api/user/strike', 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://eu.whitecircle.com/api/user/strike",
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([
'policy_id' => '8d3d8fad-0df7-443f-a6df-5445e48a8eaf',
'severity_level_id' => 'f43f4c73-b2d9-48b8-a79f-868e3f958d37',
'id' => 'user-123',
'email' => 'user@example.com',
'ip' => '203.0.113.10',
'external_session_id' => 'session-456',
'internal_session_id' => '5f8a31d6-4b2f-4e61-88d5-cc537e4af79e'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"whitecircle-version: <whitecircle-version>"
],
]);
$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://eu.whitecircle.com/api/user/strike"
payload := strings.NewReader("{\n \"policy_id\": \"8d3d8fad-0df7-443f-a6df-5445e48a8eaf\",\n \"severity_level_id\": \"f43f4c73-b2d9-48b8-a79f-868e3f958d37\",\n \"id\": \"user-123\",\n \"email\": \"user@example.com\",\n \"ip\": \"203.0.113.10\",\n \"external_session_id\": \"session-456\",\n \"internal_session_id\": \"5f8a31d6-4b2f-4e61-88d5-cc537e4af79e\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("whitecircle-version", "<whitecircle-version>")
req.Header.Add("Authorization", "Bearer <token>")
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://eu.whitecircle.com/api/user/strike")
.header("whitecircle-version", "<whitecircle-version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"policy_id\": \"8d3d8fad-0df7-443f-a6df-5445e48a8eaf\",\n \"severity_level_id\": \"f43f4c73-b2d9-48b8-a79f-868e3f958d37\",\n \"id\": \"user-123\",\n \"email\": \"user@example.com\",\n \"ip\": \"203.0.113.10\",\n \"external_session_id\": \"session-456\",\n \"internal_session_id\": \"5f8a31d6-4b2f-4e61-88d5-cc537e4af79e\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://eu.whitecircle.com/api/user/strike")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["whitecircle-version"] = '<whitecircle-version>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"policy_id\": \"8d3d8fad-0df7-443f-a6df-5445e48a8eaf\",\n \"severity_level_id\": \"f43f4c73-b2d9-48b8-a79f-868e3f958d37\",\n \"id\": \"user-123\",\n \"email\": \"user@example.com\",\n \"ip\": \"203.0.113.10\",\n \"external_session_id\": \"session-456\",\n \"internal_session_id\": \"5f8a31d6-4b2f-4e61-88d5-cc537e4af79e\"\n}"
response = http.request(request)
puts response.read_body{
"action": "warn",
"action_expires_at": "2026-04-05T10:00:00Z",
"strike": {
"severity": "high",
"points": 10,
"created_at": 1770612473,
"expires_at": 1771217273,
"reason": "session.flagged",
"internal_session_id": "5f8a31d6-4b2f-4e61-88d5-cc537e4af79e",
"external_session_id": "session-456",
"appeal": null,
"policy": {
"id": "8d3d8fad-0df7-443f-a6df-5445e48a8eaf",
"name": "Adult Content",
"severity": "high"
}
}
}Create a strike when you need to record a violation directly. This endpoint returns the created strike and the current effective action for the user.
Authorizations
API Key required. Format: Bearer wc-your-api-key
Headers
API Version
Body
application/json
Response
Success
Hide child attributes
Hide child attributes
⌘I
cURL
curl --request POST \
--url 'https://eu.whitecircle.com/api/user/strike' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'whitecircle-version: 2025-12-01' \
--data '{"policy_id":"8d3d8fad-0df7-443f-a6df-5445e48a8eaf","severity_level_id":"f43f4c73-b2d9-48b8-a79f-868e3f958d37","id":"user-123","email":"user@example.com","external_session_id":"session-456"}'import requests
url = "https://eu.whitecircle.com/api/user/strike"
payload = {
"policy_id": "8d3d8fad-0df7-443f-a6df-5445e48a8eaf",
"severity_level_id": "f43f4c73-b2d9-48b8-a79f-868e3f958d37",
"id": "user-123",
"email": "user@example.com",
"ip": "203.0.113.10",
"external_session_id": "session-456",
"internal_session_id": "5f8a31d6-4b2f-4e61-88d5-cc537e4af79e"
}
headers = {
"whitecircle-version": "<whitecircle-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'whitecircle-version': '<whitecircle-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
policy_id: '8d3d8fad-0df7-443f-a6df-5445e48a8eaf',
severity_level_id: 'f43f4c73-b2d9-48b8-a79f-868e3f958d37',
id: 'user-123',
email: 'user@example.com',
ip: '203.0.113.10',
external_session_id: 'session-456',
internal_session_id: '5f8a31d6-4b2f-4e61-88d5-cc537e4af79e'
})
};
fetch('https://eu.whitecircle.com/api/user/strike', 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://eu.whitecircle.com/api/user/strike",
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([
'policy_id' => '8d3d8fad-0df7-443f-a6df-5445e48a8eaf',
'severity_level_id' => 'f43f4c73-b2d9-48b8-a79f-868e3f958d37',
'id' => 'user-123',
'email' => 'user@example.com',
'ip' => '203.0.113.10',
'external_session_id' => 'session-456',
'internal_session_id' => '5f8a31d6-4b2f-4e61-88d5-cc537e4af79e'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"whitecircle-version: <whitecircle-version>"
],
]);
$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://eu.whitecircle.com/api/user/strike"
payload := strings.NewReader("{\n \"policy_id\": \"8d3d8fad-0df7-443f-a6df-5445e48a8eaf\",\n \"severity_level_id\": \"f43f4c73-b2d9-48b8-a79f-868e3f958d37\",\n \"id\": \"user-123\",\n \"email\": \"user@example.com\",\n \"ip\": \"203.0.113.10\",\n \"external_session_id\": \"session-456\",\n \"internal_session_id\": \"5f8a31d6-4b2f-4e61-88d5-cc537e4af79e\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("whitecircle-version", "<whitecircle-version>")
req.Header.Add("Authorization", "Bearer <token>")
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://eu.whitecircle.com/api/user/strike")
.header("whitecircle-version", "<whitecircle-version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"policy_id\": \"8d3d8fad-0df7-443f-a6df-5445e48a8eaf\",\n \"severity_level_id\": \"f43f4c73-b2d9-48b8-a79f-868e3f958d37\",\n \"id\": \"user-123\",\n \"email\": \"user@example.com\",\n \"ip\": \"203.0.113.10\",\n \"external_session_id\": \"session-456\",\n \"internal_session_id\": \"5f8a31d6-4b2f-4e61-88d5-cc537e4af79e\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://eu.whitecircle.com/api/user/strike")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["whitecircle-version"] = '<whitecircle-version>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"policy_id\": \"8d3d8fad-0df7-443f-a6df-5445e48a8eaf\",\n \"severity_level_id\": \"f43f4c73-b2d9-48b8-a79f-868e3f958d37\",\n \"id\": \"user-123\",\n \"email\": \"user@example.com\",\n \"ip\": \"203.0.113.10\",\n \"external_session_id\": \"session-456\",\n \"internal_session_id\": \"5f8a31d6-4b2f-4e61-88d5-cc537e4af79e\"\n}"
response = http.request(request)
puts response.read_body{
"action": "warn",
"action_expires_at": "2026-04-05T10:00:00Z",
"strike": {
"severity": "high",
"points": 10,
"created_at": 1770612473,
"expires_at": 1771217273,
"reason": "session.flagged",
"internal_session_id": "5f8a31d6-4b2f-4e61-88d5-cc537e4af79e",
"external_session_id": "session-456",
"appeal": null,
"policy": {
"id": "8d3d8fad-0df7-443f-a6df-5445e48a8eaf",
"name": "Adult Content",
"severity": "high"
}
}
}