HTTP JSON API of the standalone valkyr service. All bodies are UTF-8 JSON. Errors use {"error":{"code", "message"}} . Authenticate with Authorization: Bearer <key> ; each key has roles (ingest, read, review, moderator, admin; admin implies all). Every authenticated request takes one token from the key's bucket (server.rate_per_sec, rate_burst, per key overrides); an empty bucket answers 429 with Retry-After. POST requests accept an Idempotency-Key header. The trust ledger, verdict history, action queue and review board use the server wall clock in Unix milliseconds; match engines use the server_time_ms the game sends.
テレメトリー#
Submit telemetry# POST /v1/matches/{match_ id} /events ロール: ingest
Runs the match engine on each event in order and feeds the flags to the global trust ledger. At most 5000 events (server.max_events_per_batch) per batch.
パラメーター 名前 場所 型 説明 match_id 必須 path stringMatch id chosen by the game. Created on first use. Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
レスポンス 200 OK EventsResponse400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error413 Body or batch too large. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error503 Capacity limit reached. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/matches/match-1/events \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"events":[{"type":"frame","player":7,"seq":1,"client_time_ms":0,"server_time_ms":30,"position":{"x":0,"y":0,"z":0},"yaw":0,"pitch":0,"on_ground":true,"jump":false},{"type":"shot","player":7,"server_time_ms":1200,"client_time_ms":1170,"weapon":1,"yaw":90,"pitch":-2.5,"target":8,"bone":"head","latency_ms":35}]}' const res = await fetch ("http://127.0.0.1:7420/v1/matches/match-1/events" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "events" : [ { "type" : "frame" , "player" : 7 , "seq" : 1 , "client_time_ms" : 0 , "server_time_ms" : 30 , "position" : { "x" : 0 , "y" : 0 , "z" : 0 }, "yaw" : 0 , "pitch" : 0 , "on_ground" : true , "jump" : false }, { "type" : "shot" , "player" : 7 , "server_time_ms" : 1200 , "client_time_ms" : 1170 , "weapon" : 1 , "yaw" : 90 , "pitch" : -2.5 , "target" : 8 , "bone" : "head" , "latency_ms" : 35 } ] }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "events" : [ { "type" : "frame" , "player" : 7 , "seq" : 1 , "client_time_ms" : 0 , "server_time_ms" : 30 , "position" : { "x" : 0 , "y" : 0 , "z" : 0 }, "yaw" : 0 , "pitch" : 0 , "on_ground" : True , "jump" : False }, { "type" : "shot" , "player" : 7 , "server_time_ms" : 1200 , "client_time_ms" : 1170 , "weapon" : 1 , "yaw" : 90 , "pitch" : -2.5 , "target" : 8 , "bone" : "head" , "latency_ms" : 35 } ] }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/matches/match-1/events" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/matches/match-1/events" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"events\":[{\"type\":\"frame\",\"player\":7,\"seq\":1,\"client_time_ms\":0,\"server_time_ms\":30,\"position\":{\"x\":0,\"y\":0,\"z\":0},\"yaw\":0,\"pitch\":0,\"on_ground\":true,\"jump\":false},{\"type\":\"shot\",\"player\":7,\"server_time_ms\":1200,\"client_time_ms\":1170,\"weapon\":1,\"yaw\":90,\"pitch\":-2.5,\"target\":8,\"bone\":\"head\",\"latency_ms\":35}]}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "accepted" : 2 , "verdicts" : [ { "player" : 7 , "server_time_ms" : 1764849600000 , "flags" : [ { "rule" : "movement.speed" , "category" : "movement" , "player" : 7 , "server_time_ms" : 1030 , "severity" : 0.8 , "summary" : "moved at 20.0 m/s, limit 7.5 m/s" , "evidence" : [ { "name" : "horizontal_speed" , "observed" : 20 , "limit" : 7.5 , "unit" : "m/s" } ] } ], "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" } ] }
Declare level geometry# PUT /v1/matches/{match_ id} /world ロール: ingest
パラメーター 名前 場所 型 説明 match_id 必須 path stringMatch id chosen by the game. Created on first use.
フィールド 型 説明 collidersAabb[] occludersAabb[] floor_ynumber (double) | null
レスポンス 204 Done, no body.400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error503 Capacity limit reached. Error
curl -X PUT http://127.0.0.1:7420/v1/matches/match-1/world \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"colliders":[{"min":{"x":0,"y":0,"z":0},"max":{"x":4,"y":3,"z":1}}],"occluders":[],"floor_y":0}' const res = await fetch ("http://127.0.0.1:7420/v1/matches/match-1/world" , { method: "PUT" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "colliders" : [ { "min" : { "x" : 0 , "y" : 0 , "z" : 0 }, "max" : { "x" : 4 , "y" : 3 , "z" : 1 } } ], "occluders" : [], "floor_y" : 0 }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "colliders" : [ { "min" : { "x" : 0 , "y" : 0 , "z" : 0 }, "max" : { "x" : 4 , "y" : 3 , "z" : 1 } } ], "occluders" : [], "floor_y" : 0 }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/matches/match-1/world" , method="PUT" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Put , "http://127.0.0.1:7420/v1/matches/match-1/world" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"colliders\":[{\"min\":{\"x\":0,\"y\":0,\"z\":0},\"max\":{\"x\":4,\"y\":3,\"z\":1}}],\"occluders\":[],\"floor_y\":0}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );
End a match# POST /v1/matches/{match_ id} /end ロール: ingest
Ingests a match_end event, returns the per player reports and drops the match engine. Trust persists in the global ledger.
パラメーター 名前 場所 型 説明 match_id 必須 path stringMatch id chosen by the game. Created on first use. Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
レスポンス 200 OK EndResponse401 Missing or unknown key. Error403 The key lacks the required role. Error404 Not found. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/matches/match-1/end \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/matches/match-1/end" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/matches/match-1/end" , method="POST" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/matches/match-1/end" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "reports" : [ { "player" : 7 , "bracket" : 4 , "features" : { "headshot_ratio" : 0.31 }, "zscores" : { "headshot_ratio" : 1.2 }, "aim_probability" : 0.12 , "trust" : { "player" : 7 , "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "rules" : [ [ "view.pitch" , { "llr" : 3 , "count" : 1 , "last_ms" : 1030 } ], [ "movement.speed" , { "llr" : 2.4 , "count" : 3 , "last_ms" : 1030 } ] ], "total_flags" : 4 } } ], "verdicts" : [] }
Poll the enforcement queue# GET /v1/actions ロール: ingest
Actions at or above server.min_poll_action (default kick), oldest first, with id greater than since. The same action for the same player is queued again only after server.action_cooldown_ms.
パラメーター 名前 場所 型 説明 sincequery uint64Cursor from the previous poll (0 at start). limitquery integerMaximum entries.
レスポンス 200 OK ActionsResponse400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/actions \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/actions" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/actions" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/actions" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "actions" : [ { "id" : 12 , "player" : 7 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "match_id" : "m1" , "at_ms" : 1764849600000 } ], "cursor" : 12 }
プレイヤー#
Trust report# GET /v1/players/{player} /trust ロール: read
パラメーター 名前 場所 型 説明 player 必須 path uint64Player id.
レスポンス 200 OK TrustReport400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/players/7/trust \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/players/7/trust" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/players/7/trust" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/players/7/trust" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "player" : 7 , "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "rules" : [ [ "view.pitch" , { "llr" : 3 , "count" : 1 , "last_ms" : 1030 } ], [ "movement.speed" , { "llr" : 2.4 , "count" : 3 , "last_ms" : 1030 } ] ], "total_flags" : 4 }
Verdict history, newest first# GET /v1/players/{player} /verdicts ロール: read
パラメーター 名前 場所 型 説明 player 必須 path uint64Player id. limitquery integerMaximum entries.
レスポンス 200 OK VerdictsResponse400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/players/7/verdicts \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/players/7/verdicts" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/players/7/verdicts" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/players/7/verdicts" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "verdicts" : [ { "player" : 7 , "server_time_ms" : 1764849600000 , "flags" : [ { "rule" : "movement.speed" , "category" : "movement" , "player" : 7 , "server_time_ms" : 1030 , "severity" : 0.8 , "summary" : "moved at 20.0 m/s, limit 7.5 m/s" , "evidence" : [ { "name" : "horizontal_speed" , "observed" : 20 , "limit" : 7.5 , "unit" : "m/s" } ] } ], "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" } ] }
Evidence bundle# GET /v1/players/{player} /evidence ロール: read
パラメーター 名前 場所 型 説明 player 必須 path uint64Player id.
レスポンス 200 OK EvidenceBundle400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/players/7/evidence \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/players/7/evidence" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/players/7/evidence" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/players/7/evidence" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "format" : "valkyr-evidence-v1" , "player" : 7 , "generated_ms" : 1764849600000 , "report" : { "player" : 7 , "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "rules" : [ [ "view.pitch" , { "llr" : 3 , "count" : 1 , "last_ms" : 1030 } ], [ "movement.speed" , { "llr" : 2.4 , "count" : 3 , "last_ms" : 1030 } ] ], "total_flags" : 4 }, "prior" : 0.02 , "policy" : { "log" : 0.1 , "review" : 0.6 , "shadow_queue" : 0.85 , "kick" : 0.97 , "restrict" : 0.995 , "restrict_minutes" : 1440 , "ban" : null , "min_rules_for_enforcement" : 2 }, "flags" : [ { "rule" : "movement.speed" , "category" : "movement" , "player" : 7 , "server_time_ms" : 1030 , "severity" : 0.8 , "summary" : "moved at 20.0 m/s, limit 7.5 m/s" , "evidence" : [ { "name" : "horizontal_speed" , "observed" : 20 , "limit" : 7.5 , "unit" : "m/s" } ] } ], "replay_ref" : null }
Grant an appeal# POST /v1/players/{player} /clear ロール: admin
Clears the player's trust record and verdict history. Audit logged.
パラメーター 名前 場所 型 説明 player 必須 path uint64Player id. Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
レスポンス 204 Done, no body.400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl -X POST http://127.0.0.1:7420/v1/players/7/clear \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/players/7/clear" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/players/7/clear" , method="POST" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/players/7/clear" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );
クライアントセッション#
Open a client session# POST /v1/sessions ロール: ingest
Verifies the hello against the [client] policy and returns the first challenge.
パラメーター 名前 場所 型 説明 Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
フィールド 型 説明 player 必須 uint64hello 必須 HelloFirst client message.
レスポンス 200 OK SessionResponse400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error503 Capacity limit reached. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/sessions \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"player":7,"hello":{"client_key":"3d4017c3e843895a92b70aa74d1b7ebc9c982ccf2ec4968cc0cd55f12af4660c","build_hash":"4242424242424242424242424242424242424242424242424242424242424242","manifest_root":"2424242424242424242424242424242424242424242424242424242424242424","protocol":1}}' const res = await fetch ("http://127.0.0.1:7420/v1/sessions" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "player" : 7 , "hello" : { "client_key" : "3d4017c3e843895a92b70aa74d1b7ebc9c982ccf2ec4968cc0cd55f12af4660c" , "build_hash" : "4242424242424242424242424242424242424242424242424242424242424242" , "manifest_root" : "2424242424242424242424242424242424242424242424242424242424242424" , "protocol" : 1 } }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "player" : 7 , "hello" : { "client_key" : "3d4017c3e843895a92b70aa74d1b7ebc9c982ccf2ec4968cc0cd55f12af4660c" , "build_hash" : "4242424242424242424242424242424242424242424242424242424242424242" , "manifest_root" : "2424242424242424242424242424242424242424242424242424242424242424" , "protocol" : 1 } }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/sessions" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/sessions" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"player\":7,\"hello\":{\"client_key\":\"3d4017c3e843895a92b70aa74d1b7ebc9c982ccf2ec4968cc0cd55f12af4660c\",\"build_hash\":\"4242424242424242424242424242424242424242424242424242424242424242\",\"manifest_root\":\"2424242424242424242424242424242424242424242424242424242424242424\",\"protocol\":1}}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "session_id" : "5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60" , "challenge" : { "session_id" : "5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60" , "nonce" : "1111111111111111111111111111111111111111111111111111111111111111" , "server_time_ms" : 1764849600000 , "rotate_after" : 0 } }
Verify a heartbeat# POST /v1/sessions/{session_ id} /heartbeat ロール: ingest
Problems and raised signals become a client event for the player (rules client.problem and client.signal) fed to the trust ledger.
パラメーター 名前 場所 型 説明 session_id 必須 path stringSession id. Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
フィールド 型 説明 heartbeat 必須 HeartbeatEd25519 signed client report.
レスポンス 200 OK HeartbeatResponse400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error404 Not found. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/sessions/s_0123/heartbeat \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"heartbeat":{"session_id":"5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60","counter":1,"nonce":"1111111111111111111111111111111111111111111111111111111111111111","client_time_ms":1764849600100,"monotonic_ms":5000,"build_hash":"4242424242424242424242424242424242424242424242424242424242424242","manifest_root":"2424242424242424242424242424242424242424242424242424242424242424","code_hash":null,"signals":{"debugger":"clear","hardware_breakpoints":"clear","timing_anomaly":"clear","hypervisor":"clear","preload_env":"unsupported","unexpected_modules":{"status":"not_checked","count":0,"name_hashes":[]},"overlay_windows":{"status":"not_checked","windows":[]},"clock":{"status":"clear","wall_jumps":0,"max_wall_jump_ms":0,"speed_ppm":1000120},"code_drift":"clear"},"next_key":null,"signature":"abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab"}}' const res = await fetch ("http://127.0.0.1:7420/v1/sessions/s_0123/heartbeat" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "heartbeat" : { "session_id" : "5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60" , "counter" : 1 , "nonce" : "1111111111111111111111111111111111111111111111111111111111111111" , "client_time_ms" : 1764849600100 , "monotonic_ms" : 5000 , "build_hash" : "4242424242424242424242424242424242424242424242424242424242424242" , "manifest_root" : "2424242424242424242424242424242424242424242424242424242424242424" , "code_hash" : null , "signals" : { "debugger" : "clear" , "hardware_breakpoints" : "clear" , "timing_anomaly" : "clear" , "hypervisor" : "clear" , "preload_env" : "unsupported" , "unexpected_modules" : { "status" : "not_checked" , "count" : 0 , "name_hashes" : [] }, "overlay_windows" : { "status" : "not_checked" , "windows" : [] }, "clock" : { "status" : "clear" , "wall_jumps" : 0 , "max_wall_jump_ms" : 0 , "speed_ppm" : 1000120 }, "code_drift" : "clear" }, "next_key" : null , "signature" : "abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab" } }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "heartbeat" : { "session_id" : "5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60" , "counter" : 1 , "nonce" : "1111111111111111111111111111111111111111111111111111111111111111" , "client_time_ms" : 1764849600100 , "monotonic_ms" : 5000 , "build_hash" : "4242424242424242424242424242424242424242424242424242424242424242" , "manifest_root" : "2424242424242424242424242424242424242424242424242424242424242424" , "code_hash" : None , "signals" : { "debugger" : "clear" , "hardware_breakpoints" : "clear" , "timing_anomaly" : "clear" , "hypervisor" : "clear" , "preload_env" : "unsupported" , "unexpected_modules" : { "status" : "not_checked" , "count" : 0 , "name_hashes" : [] }, "overlay_windows" : { "status" : "not_checked" , "windows" : [] }, "clock" : { "status" : "clear" , "wall_jumps" : 0 , "max_wall_jump_ms" : 0 , "speed_ppm" : 1000120 }, "code_drift" : "clear" }, "next_key" : None , "signature" : "abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab" } }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/sessions/s_0123/heartbeat" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/sessions/s_0123/heartbeat" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"heartbeat\":{\"session_id\":\"5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60\",\"counter\":1,\"nonce\":\"1111111111111111111111111111111111111111111111111111111111111111\",\"client_time_ms\":1764849600100,\"monotonic_ms\":5000,\"build_hash\":\"4242424242424242424242424242424242424242424242424242424242424242\",\"manifest_root\":\"2424242424242424242424242424242424242424242424242424242424242424\",\"code_hash\":null,\"signals\":{\"debugger\":\"clear\",\"hardware_breakpoints\":\"clear\",\"timing_anomaly\":\"clear\",\"hypervisor\":\"clear\",\"preload_env\":\"unsupported\",\"unexpected_modules\":{\"status\":\"not_checked\",\"count\":0,\"name_hashes\":[]},\"overlay_windows\":{\"status\":\"not_checked\",\"windows\":[]},\"clock\":{\"status\":\"clear\",\"wall_jumps\":0,\"max_wall_jump_ms\":0,\"speed_ppm\":1000120},\"code_drift\":\"clear\"},\"next_key\":null,\"signature\":\"abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab\"}}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "report" : { "ok" : false , "problems" : [ { "kind" : "replayed_counter" , "last" : 4 , "got" : 4 } ], "signals" : { "debugger" : "clear" , "hardware_breakpoints" : "clear" , "timing_anomaly" : "clear" , "hypervisor" : "clear" , "preload_env" : "unsupported" , "unexpected_modules" : { "status" : "not_checked" , "count" : 0 , "name_hashes" : [] }, "overlay_windows" : { "status" : "not_checked" , "windows" : [] }, "clock" : { "status" : "clear" , "wall_jumps" : 0 , "max_wall_jump_ms" : 0 , "speed_ppm" : 1000120 }, "code_drift" : "clear" }, "raised_signals" : [] }, "challenge" : { "session_id" : "5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60" , "nonce" : "1111111111111111111111111111111111111111111111111111111111111111" , "server_time_ms" : 1764849600000 , "rotate_after" : 0 } }
レビュー陪審#
Add or update a juror# POST /v1/review/jurors ロール: admin
パラメーター 名前 場所 型 説明 Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
フィールド 型 説明 id 必須 uint64weight 必須 number
レスポンス 204 Done, no body.400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl -X POST http://127.0.0.1:7420/v1/review/jurors \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"id":42,"weight":0.8}' const res = await fetch ("http://127.0.0.1:7420/v1/review/jurors" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "id" : 42 , "weight" : 0.8 }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "id" : 42 , "weight" : 0.8 }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/review/jurors" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/review/jurors" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"id\":42,\"weight\":0.8}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );
Open a review case# POST /v1/review/cases ロール: admin
Snapshots the suspect's evidence bundle and draws a jury.
パラメーター 名前 場所 型 説明 Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
フィールド 型 説明 player 必須 uint64goldboolean | nullexclusionsuint64[]
レスポンス 200 OK CaseCreated400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error409 Conflict with the current state. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/review/cases \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"player":7,"gold":null}' const res = await fetch ("http://127.0.0.1:7420/v1/review/cases" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "player" : 7 , "gold" : null }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "player" : 7 , "gold" : None }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/review/cases" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/review/cases" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"player\":7,\"gold\":null}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "case_id" : 3 , "assigned" : [ 42 , 17 , 5 ] }
Cases assigned to a juror# GET /v1/review/cases ロール: review
パラメーター 名前 場所 型 説明 jurorquery uint64Juror id. Optional for keys bound to a juror (must match), required for unbound review keys, optional for admins (all cases).
レスポンス 200 OK CaseList400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/review/cases \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/review/cases" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/review/cases" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/review/cases" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "cases" : [ { "id" : 3 , "suspect" : 7 , "opened_ms" : 1764849600000 , "status" : "open" , "voted" : false } ] }
Case and evidence# GET /v1/review/cases/{case_ id} ロール: review
Votes stay hidden while the case is open. A juror must be assigned to the case.
パラメーター 名前 場所 型 説明 case_id 必須 path uint64Case id. jurorquery uint64Juror id. Optional for keys bound to a juror (must match), required for unbound review keys, optional for admins (all cases).
レスポンス 200 OK CaseDetail400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error404 Not found. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/review/cases/1 \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/review/cases/1" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/review/cases/1" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/review/cases/1" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "case" : { "id" : 3 , "suspect" : 7 , "opened_ms" : 1764849600000 , "status" : "open" }, "evidence" : { "format" : "valkyr-evidence-v1" , "player" : 7 , "generated_ms" : 1764849600000 , "report" : { "player" : 7 , "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "rules" : [ [ "view.pitch" , { "llr" : 3 , "count" : 1 , "last_ms" : 1030 } ], [ "movement.speed" , { "llr" : 2.4 , "count" : 3 , "last_ms" : 1030 } ] ], "total_flags" : 4 }, "prior" : 0.02 , "policy" : { "log" : 0.1 , "review" : 0.6 , "shadow_queue" : 0.85 , "kick" : 0.97 , "restrict" : 0.995 , "restrict_minutes" : 1440 , "ban" : null , "min_rules_for_enforcement" : 2 }, "flags" : [ { "rule" : "movement.speed" , "category" : "movement" , "player" : 7 , "server_time_ms" : 1030 , "severity" : 0.8 , "summary" : "moved at 20.0 m/s, limit 7.5 m/s" , "evidence" : [ { "name" : "horizontal_speed" , "observed" : 20 , "limit" : 7.5 , "unit" : "m/s" } ] } ], "replay_ref" : null } }
Cast a vote# POST /v1/review/cases/{case_ id} /votes ロール: review
One vote per juror and case.
パラメーター 名前 場所 型 説明 case_id 必須 path uint64Case id. Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
レスポンス 204 Done, no body.400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error404 Not found. Error409 Conflict with the current state. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl -X POST http://127.0.0.1:7420/v1/review/cases/1/votes \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"juror":42,"choice":"cheating"}' const res = await fetch ("http://127.0.0.1:7420/v1/review/cases/1/votes" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "juror" : 42 , "choice" : "cheating" }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "juror" : 42 , "choice" : "cheating" }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/review/cases/1/votes" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/review/cases/1/votes" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"juror\":42,\"choice\":\"cheating\"}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );
Close a case# POST /v1/review/cases/{case_ id} /close ロール: admin
Tallies weighted votes, grades jurors and sends the review.closed webhook.
パラメーター 名前 場所 型 説明 case_id 必須 path uint64Case id. Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
レスポンス 200 OK CaseOutcome401 Missing or unknown key. Error403 The key lacks the required role. Error404 Not found. Error409 Conflict with the current state. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/review/cases/1/close \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/review/cases/1/close" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/review/cases/1/close" , method="POST" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/review/cases/1/close" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "decision" : "Guilty" , "cheating_weight" : 2.1 , "clean_weight" : 0.3 , "unsure" : 1 , "votes" : 5 , "closed_ms" : 1764936000000 }
Juror pairs voting together against the majority# GET /v1/review/collusion ロール: admin
レスポンス 200 OK CollusionResponse401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/review/collusion \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/review/collusion" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/review/collusion" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/review/collusion" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "pairs" : [ { "a" : 5 , "b" : 9 , "shared" : 6 , "agreement" : 1 , "against_majority" : 4 } ] }
Review jury web page# GET /review
Self contained HTML page. It loads only the pinned Monsoon stylesheet and Voodoo.js script from cdn.jsdelivr.net and calls this API with the juror's key.
レスポンス
curl http://127.0.0.1:7420/reviewconst res = await fetch ("http://127.0.0.1:7420/review" , { method: "GET" , headers: { }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/review" , method="GET" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/review" );var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );
moderation#
Ban a player# POST /v1/bans ロール: moderator
Kinds: shadow, temporary (duration_secs required), permanent. The evidence bundle (recent flags, guard signals, replay ids, model scores, trust report) is stored with the ban. With wave = true and [bans] wave_mode not off the ban is queued and activates in the next wave (hidden from standing until then). Sends ban.created (and enforces at once unless queued: temporary maps to the restrict action, permanent to ban, shadow to shadow_queue). Audit logged.
パラメーター 名前 場所 型 説明 Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
フィールド 型 説明 player 必須 uint64kind 必須 BanKindshadow: matchmaking with other flagged players only; temporary: until expires_ms; permanent: until revoked. scopestringglobal, game:<id> , server:<id> or league:<id> . reason 必須 stringduration_secs integer | nullwavebooleanreplay_ids string[] model_scores objectmatch_idstring | null
レスポンス 201 Created. Ban400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error409 Conflict with the current state. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/bans \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"player":7,"kind":"temporary","scope":"game:arena","reason":"speed hack, 3 matches","duration_secs":604800,"wave":false,"replay_ids":["replay-881"],"model_scores":{},"match_id":"m1"}' const res = await fetch ("http://127.0.0.1:7420/v1/bans" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "player" : 7 , "kind" : "temporary" , "scope" : "game:arena" , "reason" : "speed hack, 3 matches" , "duration_secs" : 604800 , "wave" : false , "replay_ids" : [ "replay-881" ], "model_scores" : {}, "match_id" : "m1" }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "player" : 7 , "kind" : "temporary" , "scope" : "game:arena" , "reason" : "speed hack, 3 matches" , "duration_secs" : 604800 , "wave" : False , "replay_ids" : [ "replay-881" ], "model_scores" : {}, "match_id" : "m1" }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/bans" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/bans" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"player\":7,\"kind\":\"temporary\",\"scope\":\"game:arena\",\"reason\":\"speed hack, 3 matches\",\"duration_secs\":604800,\"wave\":false,\"replay_ids\":[\"replay-881\"],\"model_scores\":{},\"match_id\":\"m1\"}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "id" : 4 , "player" : 7 , "kind" : "temporary" , "scope" : "game:arena" , "reason" : "speed hack, 3 matches" , "status" : "active" , "source" : "manual" , "created_by" : "moderation" , "created_ms" : 1764849600000 , "activates_ms" : null , "started_ms" : 1764849600000 , "duration_secs" : 604800 , "expires_ms" : 1765454400000 , "wave_id" : null , "ended_ms" : null , "end_reason" : null , "match_id" : "m1" , "evidence" : { "flags" : [ { "rule" : "movement.speed" , "category" : "movement" , "player" : 7 , "server_time_ms" : 1030 , "severity" : 0.8 , "summary" : "moved at 20.0 m/s, limit 7.5 m/s" , "evidence" : [ { "name" : "horizontal_speed" , "observed" : 20 , "limit" : 7.5 , "unit" : "m/s" } ] } ], "signals" : [ { "at_ms" : 1764849600000 , "key_id" : "studio-1" , "type" : "injected_code" , "rule" : "client.guard.injected_code" , "count" : 1 , "detail" : "module without signature in game process" } ], "replay_ids" : [ "replay-881" ], "model_scores" : { "trust_probability" : 0.9712 }, "trust" : { "player" : 7 , "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "rules" : [ [ "view.pitch" , { "llr" : 3 , "count" : 1 , "last_ms" : 1030 } ], [ "movement.speed" , { "llr" : 2.4 , "count" : 3 , "last_ms" : 1030 } ] ], "total_flags" : 4 } } }
List bans, newest first# GET /v1/bans ロール: moderator
Without evidence.
パラメーター 名前 場所 型 説明 playerquery uint64Only this player. scopequery stringComma separated scopes (global, game:<id> , server:<id> , league:<id> ). Empty: every scope. statusquery "queued" | "active" | "expired" | "revoked" Only this status. limitquery integerMaximum entries.
レスポンス 200 OK BanList400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/bans \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/bans" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/bans" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/bans" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "bans" : [ { "id" : 4 , "player" : 7 , "kind" : "temporary" , "scope" : "game:arena" , "reason" : "speed hack, 3 matches" , "status" : "active" , "source" : "manual" , "created_by" : "moderation" , "created_ms" : 1764849600000 , "activates_ms" : null , "started_ms" : 1764849600000 , "duration_secs" : 604800 , "expires_ms" : 1765454400000 , "wave_id" : null , "ended_ms" : null , "end_reason" : null , "match_id" : "m1" }, { "id" : 5 , "player" : 7 , "kind" : "permanent" , "scope" : "game:arena" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "status" : "queued" , "source" : "policy" , "created_by" : "policy" , "created_ms" : 1764849600000 , "activates_ms" : 1764936000000 , "started_ms" : null , "duration_secs" : null , "expires_ms" : null , "wave_id" : null , "ended_ms" : null , "end_reason" : null , "match_id" : "m1" } ] }
Ban with its evidence bundle# GET /v1/bans/{ban_ id} ロール: moderator
パラメーター 名前 場所 型 説明 ban_id 必須 path uint64Ban id.
レスポンス 200 OK Ban400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error404 Not found. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/bans/1 \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/bans/1" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/bans/1" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/bans/1" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "id" : 4 , "player" : 7 , "kind" : "temporary" , "scope" : "game:arena" , "reason" : "speed hack, 3 matches" , "status" : "active" , "source" : "manual" , "created_by" : "moderation" , "created_ms" : 1764849600000 , "activates_ms" : null , "started_ms" : 1764849600000 , "duration_secs" : 604800 , "expires_ms" : 1765454400000 , "wave_id" : null , "ended_ms" : null , "end_reason" : null , "match_id" : "m1" , "evidence" : { "flags" : [ { "rule" : "movement.speed" , "category" : "movement" , "player" : 7 , "server_time_ms" : 1030 , "severity" : 0.8 , "summary" : "moved at 20.0 m/s, limit 7.5 m/s" , "evidence" : [ { "name" : "horizontal_speed" , "observed" : 20 , "limit" : 7.5 , "unit" : "m/s" } ] } ], "signals" : [ { "at_ms" : 1764849600000 , "key_id" : "studio-1" , "type" : "injected_code" , "rule" : "client.guard.injected_code" , "count" : 1 , "detail" : "module without signature in game process" } ], "replay_ids" : [ "replay-881" ], "model_scores" : { "trust_probability" : 0.9712 }, "trust" : { "player" : 7 , "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "rules" : [ [ "view.pitch" , { "llr" : 3 , "count" : 1 , "last_ms" : 1030 } ], [ "movement.speed" , { "llr" : 2.4 , "count" : 3 , "last_ms" : 1030 } ] ], "total_flags" : 4 } } }
Unban# DELETE /v1/bans/{ban_ id} ロール: moderator
Revokes a queued or active ban (ban.revoked). Audit logged.
パラメーター 名前 場所 型 説明 ban_id 必須 path uint64Ban id. reasonquery stringWhy the ban is lifted.
レスポンス 200 OK Ban400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error404 Not found. Error409 Conflict with the current state. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X DELETE http://127.0.0.1:7420/v1/bans/1 \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/bans/1" , { method: "DELETE" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/bans/1" , method="DELETE" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Delete , "http://127.0.0.1:7420/v1/bans/1" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "id" : 4 , "player" : 7 , "kind" : "temporary" , "scope" : "game:arena" , "reason" : "speed hack, 3 matches" , "status" : "active" , "source" : "manual" , "created_by" : "moderation" , "created_ms" : 1764849600000 , "activates_ms" : null , "started_ms" : 1764849600000 , "duration_secs" : 604800 , "expires_ms" : 1765454400000 , "wave_id" : null , "ended_ms" : null , "end_reason" : null , "match_id" : "m1" , "evidence" : { "flags" : [ { "rule" : "movement.speed" , "category" : "movement" , "player" : 7 , "server_time_ms" : 1030 , "severity" : 0.8 , "summary" : "moved at 20.0 m/s, limit 7.5 m/s" , "evidence" : [ { "name" : "horizontal_speed" , "observed" : 20 , "limit" : 7.5 , "unit" : "m/s" } ] } ], "signals" : [ { "at_ms" : 1764849600000 , "key_id" : "studio-1" , "type" : "injected_code" , "rule" : "client.guard.injected_code" , "count" : 1 , "detail" : "module without signature in game process" } ], "replay_ids" : [ "replay-881" ], "model_scores" : { "trust_probability" : 0.9712 }, "trust" : { "player" : 7 , "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "rules" : [ [ "view.pitch" , { "llr" : 3 , "count" : 1 , "last_ms" : 1030 } ], [ "movement.speed" , { "llr" : 2.4 , "count" : 3 , "last_ms" : 1030 } ] ], "total_flags" : 4 } } }
File an appeal# POST /v1/bans/{ban_ id} /appeals ロール: ingest, moderator
One open appeal per ban. With [bans] appeal_jury = true a review case is opened for the player and linked (case_id). Sends appeal.filed.
パラメーター 名前 場所 型 説明 ban_id 必須 path uint64Ban id. Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
レスポンス 201 Created. Appeal400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error404 Not found. Error409 Conflict with the current state. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/bans/1/appeals \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"filed_by":"player","statement":"I was on a fast server, check the replay."}' const res = await fetch ("http://127.0.0.1:7420/v1/bans/1/appeals" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "filed_by" : "player" , "statement" : "I was on a fast server, check the replay." }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "filed_by" : "player" , "statement" : "I was on a fast server, check the replay." }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/bans/1/appeals" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/bans/1/appeals" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"filed_by\":\"player\",\"statement\":\"I was on a fast server, check the replay.\"}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "id" : 2 , "ban_id" : 4 , "player" : 7 , "filed_by" : "player" , "statement" : "I was on a fast server, check the replay." , "status" : "overturned" , "filed_ms" : 1764850200000 , "case_id" : 3 , "outcome" : { "decision" : "overturn" , "note" : "jury found no cheating" , "reviewer" : "moderation" , "decided_ms" : 1764853200000 } }
List appeals, newest first# GET /v1/appeals ロール: moderator
パラメーター 名前 場所 型 説明 statusquery "open" | "upheld" | "overturned" | "reduced" Only this status. playerquery uint64Only this player. limitquery integerMaximum entries.
レスポンス 200 OK AppealList400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/appeals \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/appeals" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/appeals" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/appeals" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "appeals" : [ { "id" : 2 , "ban_id" : 4 , "player" : 7 , "filed_by" : "player" , "statement" : "I was on a fast server, check the replay." , "status" : "overturned" , "filed_ms" : 1764850200000 , "case_id" : 3 , "outcome" : { "decision" : "overturn" , "note" : "jury found no cheating" , "reviewer" : "moderation" , "decided_ms" : 1764853200000 } } ] }
Decide an appeal# POST /v1/appeals/{appeal_ id} /decision ロール: moderator
uphold keeps the ban; overturn revokes it (ban.revoked) and clears the player's trust record; reduce turns it into a temporary ban of duration_secs from now (ban.updated). Sends appeal.decided. Audit logged.
パラメーター 名前 場所 型 説明 appeal_id 必須 path uint64Appeal id. Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
フィールド 型 説明 decision 必須 AppealDecisionnotestringduration_secs integer | null
レスポンス 200 OK Appeal400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error404 Not found. Error409 Conflict with the current state. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/appeals/1/decision \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"decision":"reduce","note":"first offence","duration_secs":86400}' const res = await fetch ("http://127.0.0.1:7420/v1/appeals/1/decision" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "decision" : "reduce" , "note" : "first offence" , "duration_secs" : 86400 }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "decision" : "reduce" , "note" : "first offence" , "duration_secs" : 86400 }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/appeals/1/decision" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/appeals/1/decision" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"decision\":\"reduce\",\"note\":\"first offence\",\"duration_secs\":86400}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "id" : 2 , "ban_id" : 4 , "player" : 7 , "filed_by" : "player" , "statement" : "I was on a fast server, check the replay." , "status" : "overturned" , "filed_ms" : 1764850200000 , "case_id" : 3 , "outcome" : { "decision" : "overturn" , "note" : "jury found no cheating" , "reviewer" : "moderation" , "decided_ms" : 1764853200000 } }
Warn a player# POST /v1/warnings ロール: moderator
Sends warning. Audit logged.
パラメーター 名前 場所 型 説明 Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
フィールド 型 説明 player 必須 uint64reason 必須 stringscopestringglobal, game:<id> , server:<id> or league:<id> . match_idstring | null
レスポンス 201 Created. Warning400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/warnings \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"player":7,"reason":"toxic chat"}' const res = await fetch ("http://127.0.0.1:7420/v1/warnings" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "player" : 7 , "reason" : "toxic chat" }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "player" : 7 , "reason" : "toxic chat" }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/warnings" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/warnings" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"player\":7,\"reason\":\"toxic chat\"}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "id" : 1 , "player" : 7 , "reason" : "toxic chat" , "scope" : "global" , "match_id" : null , "by" : "moderation" , "at_ms" : 1764849600000 }
Kick a player# POST /v1/kicks ロール: moderator
Queues a kick action for the game to poll (GET /v1/actions) and sends kick. Audit logged.
パラメーター 名前 場所 型 説明 Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
フィールド 型 説明 player 必須 uint64reason 必須 stringmatch_idstring | null
レスポンス 201 Created. Kick400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/kicks \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"player":7,"reason":"afk farming","match_id":"m1"}' const res = await fetch ("http://127.0.0.1:7420/v1/kicks" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "player" : 7 , "reason" : "afk farming" , "match_id" : "m1" }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "player" : 7 , "reason" : "afk farming" , "match_id" : "m1" }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/kicks" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/kicks" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"player\":7,\"reason\":\"afk farming\",\"match_id\":\"m1\"}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "id" : 1 , "player" : 7 , "reason" : "afk farming" , "match_id" : "m1" , "by" : "moderation" , "at_ms" : 1764849600000 , "action_id" : 13 }
Ban wave state# GET /v1/waves ロール: moderator
[bans] wave_mode: off (bans act at once), interval (every wave_interval_secs plus up to wave_jitter_secs) or delay (each ban waits wave_delay_secs); both add up to wave_jitter_secs of random delay.
レスポンス 200 OK WavesResponse401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/waves \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/waves" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/waves" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/waves" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "mode" : "delay" , "next_wave_ms" : 1764936000000 , "queued" : [ { "id" : 5 , "player" : 7 , "kind" : "permanent" , "scope" : "game:arena" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "status" : "queued" , "source" : "policy" , "created_by" : "policy" , "created_ms" : 1764849600000 , "activates_ms" : 1764936000000 , "started_ms" : null , "duration_secs" : null , "expires_ms" : null , "wave_id" : null , "ended_ms" : null , "end_reason" : null , "match_id" : "m1" } ], "history" : [ { "id" : 1 , "executed_ms" : 1764936000000 , "trigger" : "schedule" , "bans" : [ 5 ] } ] }
Run a ban wave now# POST /v1/waves/run ロール: admin
Activates every queued ban. Sends ban.activated per ban and wave.executed. Audit logged.
パラメーター 名前 場所 型 説明 Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
レスポンス 200 OK Wave401 Missing or unknown key. Error403 The key lacks the required role. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/waves/run \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/waves/run" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/waves/run" , method="POST" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/waves/run" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "id" : 1 , "executed_ms" : 1764936000000 , "trigger" : "schedule" , "bans" : [ 5 ] }
Record an account link token# POST /v1/links ロール: ingest, moderator
Stores SHA-256 (links.salt || kind || 0x00 || token) for the player; accounts sharing a hash are linked. Raw tokens are never stored. Hashes unused for links.retention_days are pruned. Needs [links] enabled = true (409 links_disabled otherwise).
パラメーター 名前 場所 型 説明 Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
フィールド 型 説明 player 必須 uint64kind 必須 stringToken kind, one of [links] kinds when that list is set (for example device, payment, ip_prefix). token 必須 stringRaw token; only a salted SHA-256 hash is stored.
レスポンス 200 OK PlayerLinks400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error409 Conflict with the current state. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/links \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"player":7,"kind":"device","token":"c0ffee-device-serial"}' const res = await fetch ("http://127.0.0.1:7420/v1/links" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "player" : 7 , "kind" : "device" , "token" : "c0ffee-device-serial" }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "player" : 7 , "kind" : "device" , "token" : "c0ffee-device-serial" }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/links" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/links" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"player\":7,\"kind\":\"device\",\"token\":\"c0ffee-device-serial\"}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "player" : 7 , "links" : [ { "account" : 9 , "shared_kinds" : [ "device" ], "bans_in_effect" : [ 4 ] } ], "evasion_risk" : 0.5 }
Linked accounts# GET /v1/players/{player} /links ロール: moderator
Audit logged.
パラメーター 名前 場所 型 説明 player 必須 path uint64Player id.
レスポンス 200 OK PlayerLinks400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error409 Conflict with the current state. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/players/7/links \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/players/7/links" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/players/7/links" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/players/7/links" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "player" : 7 , "links" : [ { "account" : 9 , "shared_kinds" : [ "device" ], "bans_in_effect" : [ 4 ] } ], "evasion_risk" : 0.5 }
Join check# GET /v1/players/{player} /standing ロール: ingest, read
Bans in effect for the scopes (global always applies; shadow bans set shadow but keep allowed = true) and the ban evasion check. When links.evasion_flag is on and a linked account has a ban in effect, the player gets an account.ban_evasion flag (at most hourly) that feeds the trust ledger.
パラメーター 名前 場所 型 説明 player 必須 path uint64Player id. scopequery stringComma separated scopes (global, game:<id> , server:<id> , league:<id> ). Empty: every scope.
レスポンス 200 OK Standing400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/players/7/standing \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/players/7/standing" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/players/7/standing" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/players/7/standing" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "player" : 9 , "scopes" : [ "game:arena" ], "allowed" : true , "banned" : false , "shadow" : false , "bans" : [], "warnings" : 0 , "evasion" : { "risk" : 0.5 , "linked_banned" : [ { "account" : 7 , "shared_kinds" : [ "device" ], "ban_id" : 4 , "kind" : "temporary" , "scope" : "game:arena" } ] } }
Guard#
Ingest signed guard signals# POST /v1/guard/signals ロール: ingest
Verifies the Ed25519 envelope against [[guard.keys]], checks sent_ms against guard.max_skew_secs and seq against the last accepted one, maps each signal to a client.guard.<type> flag and judges them. Client signals are hints: a verdict built only from client.* evidence is capped at review unless one of guard.strong contributes. Sends guard.signal. Errors: 409 guard_disabled, 401 unknown_guard_key or bad_signature, 400 invalid_payload or stale_signal, 413 too_many_signals, 409 replayed_signal or player_mismatch, 422 unknown_player.
パラメーター 名前 場所 型 説明 Idempotency-Key header stringOptional. The first response is stored for server.idempotency_ttl_secs (24 h) per key and replayed (header Idempotent-Replayed : true) for the same request; a different request with the same key answers 422 idempotency_key_reused, a concurrent one 409.
フィールド 型 説明 key_id 必須 stringpayload 必須 stringGuardPayload as JSON text, signed byte for byte. signature 必須 string64 bytes, hex
レスポンス 200 OK GuardResponse400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error409 Conflict with the current state. Error413 Body or batch too large. Error422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl -X POST http://127.0.0.1:7420/v1/guard/signals \ -H "Authorization: Bearer $VALKYR_KEY" \ -H "Content-Type: application/json" \ -d '{"key_id":"studio-1","payload":"{\"version\":1,\"game\":\"arena\",\"session_id\":\"5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60\",\"player\":7,\"seq\":12,\"sent_ms\":1764849600000,\"signals\":[{\"type\":\"injected_code\",\"count\":1,\"detail\":\"module without signature in game process\",\"observed_ms\":1764849599600}]}","signature":"abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab"}' const res = await fetch ("http://127.0.0.1:7420/v1/guard/signals" , { method: "POST" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` , "Content-Type" : "application/json" }, body: JSON .stringify ({ "key_id" : "studio-1" , "payload" : "{\"version\":1,\"game\":\"arena\",\"session_id\":\"5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60\",\"player\":7,\"seq\":12,\"sent_ms\":1764849600000,\"signals\":[{\"type\":\"injected_code\",\"count\":1,\"detail\":\"module without signature in game process\",\"observed_ms\":1764849599600}]}" , "signature" : "abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab" }), }); console.log (res.status, await res.text ()); import json, os, urllib.request body = json.dumps ({ "key_id" : "studio-1" , "payload" : "{\"version\":1,\"game\":\"arena\",\"session_id\":\"5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60\",\"player\":7,\"seq\":12,\"sent_ms\":1764849600000,\"signals\":[{\"type\":\"injected_code\",\"count\":1,\"detail\":\"module without signature in game process\",\"observed_ms\":1764849599600}]}" , "signature" : "abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab" }).encode () req = urllib.request.Request ("http://127.0.0.1:7420/v1/guard/signals" , method="POST" , data=body) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) req.add_header ("Content-Type" , "application/json" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Post , "http://127.0.0.1:7420/v1/guard/signals" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); req.Content = new StringContent ("{\"key_id\":\"studio-1\",\"payload\":\"{\\\"version\\\":1,\\\"game\\\":\\\"arena\\\",\\\"session_id\\\":\\\"5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60\\\",\\\"player\\\":7,\\\"seq\\\":12,\\\"sent_ms\\\":1764849600000,\\\"signals\\\":[{\\\"type\\\":\\\"injected_code\\\",\\\"count\\\":1,\\\"detail\\\":\\\"module without signature in game process\\\",\\\"observed_ms\\\":1764849599600}]}\",\"signature\":\"abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab\"}" , Encoding .UTF8 , "application/json" ); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "player" : 7 , "accepted" : 1 , "ignored" : [], "verdicts" : [ { "player" : 7 , "server_time_ms" : 1764849600000 , "flags" : [ { "rule" : "movement.speed" , "category" : "movement" , "player" : 7 , "server_time_ms" : 1030 , "severity" : 0.8 , "summary" : "moved at 20.0 m/s, limit 7.5 m/s" , "evidence" : [ { "name" : "horizontal_speed" , "observed" : 20 , "limit" : 7.5 , "unit" : "m/s" } ] } ], "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" } ] }
Health check# GET /v1/health
No key needed.
レスポンス
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/healthconst res = await fetch ("http://127.0.0.1:7420/v1/health" , { method: "GET" , headers: { }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/health" , method="GET" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/health" );var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "status" : "ok" , "version" : "0.1.0" , "matches" : 3 , "players" : 120 }
Audit log tail, newest first# GET /v1/audit ロール: admin
The full log is an append only JSON lines file on disk.
パラメーター 名前 場所 型 説明 limitquery integerMaximum entries.
レスポンス 200 OK AuditResponse400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl JavaScript Python C# レスポンス
curl http://127.0.0.1:7420/v1/audit \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/audit" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/audit" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/audit" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );{ "entries" : [ { "at_ms" : 1764849600000 , "actor" : "operator" , "action" : "player.clear" , "target" : "player:7" , "detail" : "appeal granted, 4 flag(s) cleared" } ] }
Prometheus metrics# GET /metrics
Text exposition format: valkyr_events_total, valkyr_verdicts_total{action} , valkyr_flags_total{rule} , valkyr_webhook_deliveries_total{status} , valkyr_http_responses_total{code} , valkyr_matches_active, valkyr_sessions_active, valkyr_ingest_seconds (histogram). Needs Authorization: Bearer <metrics_ token> only when server.metrics_token is set.
レスポンス 200 Metrics.401 Missing or unknown key. Error
curl http://127.0.0.1:7420/metricsconst res = await fetch ("http://127.0.0.1:7420/metrics" , { method: "GET" , headers: { }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/metrics" , method="GET" ) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/metrics" );var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );
Live event stream (Server-Sent Events)# GET /v1/stream ロール: read
text/event-stream of every webhook event type (no min_action filter): id, event (the type) and data (the json webhook envelope). A : keepalive comment every stream.heartbeat_secs. Each client has a buffer of stream.buffer events; on overflow it gets event: stream.dropped with the count. At most stream.max_clients streams (503 too_many_streams).
パラメーター 名前 場所 型 説明 typesquery stringComma separated event types; a prefix such as ban matches every ban.* type. playerquery uint64Only events about this player. matchquery stringOnly events about this match.
レスポンス 200 Event stream.400 Invalid JSON, parameters or values. Error401 Missing or unknown key. Error403 The key lacks the required role. Error429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error503 Capacity limit reached. Error
curl http://127.0.0.1:7420/v1/stream \ -H "Authorization: Bearer $VALKYR_KEY" const res = await fetch ("http://127.0.0.1:7420/v1/stream" , { method: "GET" , headers: { Authorization : `Bearer ${process.env.VALKYR_KEY}` }, }); console.log (res.status, await res.text ()); import json, os, urllib.request req = urllib.request.Request ("http://127.0.0.1:7420/v1/stream" , method="GET" ) req.add_header ("Authorization" , "Bearer " + os.environ["VALKYR_KEY" ]) with urllib.request.urlopen (req) as res: print (res.status, res.read ().decode ()) using var http = new HttpClient ();var req = new HttpRequestMessage (HttpMethod .Get , "http://127.0.0.1:7420/v1/stream" );req.Headers .Authorization = new AuthenticationHeaderValue ("Bearer" , Environment .GetEnvironmentVariable ("VALKYR_KEY" )); var res = await http.SendAsync (req);Console .WriteLine ($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}" );
Webhook# valkyr-server があなたのエンドポイントに送るリクエストです。ボディを信頼する前に Valkyr-Signature ヘッダーを検証してください。
verdict# Every verdict whose action is at least the webhook's min_action (default review).
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "verdict" , "created_ms" : 1764849600000 , "data" : { "match_id" : "m1" , "verdict" : { "player" : 7 , "server_time_ms" : 1764849600000 , "flags" : [ { "rule" : "movement.speed" , "category" : "movement" , "player" : 7 , "server_time_ms" : 1030 , "severity" : 0.8 , "summary" : "moved at 20.0 m/s, limit 7.5 m/s" , "evidence" : [ { "name" : "horizontal_speed" , "observed" : 20 , "limit" : 7.5 , "unit" : "m/s" } ] } ], "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" } } }
action# Enforcement decisions (kick, restrict, ban) at least min_action.
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "action" , "created_ms" : 1764849600000 , "data" : { "id" : 12 , "player" : 7 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "match_id" : "m1" , "at_ms" : 1764849600000 } }
review.closed# A review case was closed.
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "review.closed" , "created_ms" : 1764936000000 , "data" : { "case_id" : 3 , "suspect" : 7 , "outcome" : { "decision" : "Guilty" , "cheating_weight" : 2.1 , "clean_weight" : 0.3 , "unsure" : 1 , "votes" : 5 , "closed_ms" : 1764936000000 } } }
kick# A moderator kicked a player (POST /v1/kicks).
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "kick" , "created_ms" : 1764849600000 , "data" : { "id" : 1 , "player" : 7 , "reason" : "afk farming" , "match_id" : "m1" , "by" : "moderation" , "at_ms" : 1764849600000 , "action_id" : 13 } }
warning# A moderator warned a player (POST /v1/warnings).
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "warning" , "created_ms" : 1764849600000 , "data" : { "id" : 1 , "player" : 7 , "reason" : "toxic chat" , "scope" : "global" , "match_id" : null , "by" : "moderation" , "at_ms" : 1764849600000 } }
ban.created# A ban was created, by a moderator or by the policy ([bans] auto). Queued bans are created hidden and activate in a wave.
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "ban.created" , "created_ms" : 1764849600000 , "data" : { "id" : 5 , "player" : 7 , "kind" : "permanent" , "scope" : "game:arena" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "status" : "queued" , "source" : "policy" , "created_by" : "policy" , "created_ms" : 1764849600000 , "activates_ms" : 1764936000000 , "started_ms" : null , "duration_secs" : null , "expires_ms" : null , "wave_id" : null , "ended_ms" : null , "end_reason" : null , "match_id" : "m1" } }
ban.activated# A queued ban became active in a wave.
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "ban.activated" , "created_ms" : 1764849600000 , "data" : { "id" : 5 , "player" : 7 , "kind" : "permanent" , "scope" : "game:arena" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" , "status" : "active" , "source" : "policy" , "created_by" : "policy" , "created_ms" : 1764849600000 , "activates_ms" : 1764936000000 , "started_ms" : 1764936000000 , "duration_secs" : null , "expires_ms" : null , "wave_id" : 1 , "ended_ms" : null , "end_reason" : null , "match_id" : "m1" } }
ban.updated# A ban changed (an appeal reduced it).
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "ban.updated" , "created_ms" : 1764849600000 , "data" : { "id" : 4 , "player" : 7 , "kind" : "temporary" , "scope" : "game:arena" , "reason" : "speed hack, 3 matches" , "status" : "active" , "source" : "manual" , "created_by" : "moderation" , "created_ms" : 1764849600000 , "activates_ms" : null , "started_ms" : 1764849600000 , "duration_secs" : 86400 , "expires_ms" : 1764939600000 , "wave_id" : null , "ended_ms" : null , "end_reason" : null , "match_id" : "m1" } }
ban.revoked# A ban was lifted (DELETE /v1/bans/{ban_ id} or an overturned appeal).
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "ban.revoked" , "created_ms" : 1764849600000 , "data" : { "id" : 4 , "player" : 7 , "kind" : "temporary" , "scope" : "game:arena" , "reason" : "speed hack, 3 matches" , "status" : "revoked" , "source" : "manual" , "created_by" : "moderation" , "created_ms" : 1764849600000 , "activates_ms" : null , "started_ms" : 1764849600000 , "duration_secs" : 604800 , "expires_ms" : 1765454400000 , "wave_id" : null , "ended_ms" : 1764853200000 , "end_reason" : "appeal overturned" , "match_id" : "m1" } }
ban.expired# A temporary ban ran out.
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "ban.expired" , "created_ms" : 1764849600000 , "data" : { "id" : 4 , "player" : 7 , "kind" : "temporary" , "scope" : "game:arena" , "reason" : "speed hack, 3 matches" , "status" : "expired" , "source" : "manual" , "created_by" : "moderation" , "created_ms" : 1764849600000 , "activates_ms" : null , "started_ms" : 1764849600000 , "duration_secs" : 604800 , "expires_ms" : 1765454400000 , "wave_id" : null , "ended_ms" : 1765454400000 , "end_reason" : "expired" , "match_id" : "m1" } }
wave.executed# A ban wave ran.
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "wave.executed" , "created_ms" : 1764849600000 , "data" : { "id" : 1 , "executed_ms" : 1764936000000 , "trigger" : "schedule" , "bans" : [ 5 ] } }
appeal.filed# An appeal was filed.
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "appeal.filed" , "created_ms" : 1764849600000 , "data" : { "id" : 2 , "ban_id" : 4 , "player" : 7 , "filed_by" : "player" , "statement" : "I was on a fast server, check the replay." , "status" : "open" , "filed_ms" : 1764850200000 , "case_id" : 3 , "outcome" : null } }
appeal.decided# An appeal was decided.
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "appeal.decided" , "created_ms" : 1764849600000 , "data" : { "id" : 2 , "ban_id" : 4 , "player" : 7 , "filed_by" : "player" , "statement" : "I was on a fast server, check the replay." , "status" : "overturned" , "filed_ms" : 1764850200000 , "case_id" : 3 , "outcome" : { "decision" : "overturn" , "note" : "jury found no cheating" , "reviewer" : "moderation" , "decided_ms" : 1764853200000 } } }
guard.signal# Signed guard signals were accepted for a player.
{ "id" : "evt_0123456789abcdef0123456789abcdef" , "type" : "guard.signal" , "created_ms" : 1764849600000 , "data" : { "player" : 7 , "session_id" : "5f0c6e1f2a9b4d7e8c3a1b2c3d4e5f60" , "seq" : 12 , "signals" : [ { "at_ms" : 1764849600000 , "key_id" : "studio-1" , "type" : "injected_code" , "rule" : "client.guard.injected_code" , "count" : 1 , "detail" : "module without signature in game process" } ], "verdict" : { "player" : 7 , "server_time_ms" : 1764849600000 , "flags" : [ { "rule" : "movement.speed" , "category" : "movement" , "player" : 7 , "server_time_ms" : 1030 , "severity" : 0.8 , "summary" : "moved at 20.0 m/s, limit 7.5 m/s" , "evidence" : [ { "name" : "horizontal_speed" , "observed" : 20 , "limit" : 7.5 , "unit" : "m/s" } ] } ], "probability" : 0.9712 , "trust" : 2.88 , "action" : "kick" , "reason" : "kick: probability 0.971 from 2 rule(s) (view.pitch, movement.speed)" } } }
スキーマ#
Vec3 Meters, Y up Meters, Y up.
フィールド 型 説明 x 必須 number (double) y 必須 number (double) z 必須 number (double)
Aabb Axis aligned box Axis aligned box.
フィールド 型 説明 min 必須 Vec3Meters, Y up. max 必須 Vec3Meters, Y up.
World Static level geometry Static level geometry. Colliders block movement and sight, occluders only sight.
フィールド 型 説明 collidersAabb[] occludersAabb[] floor_ynumber (double) | null
Frame Per tick player state Per tick player state. Yaw in degrees around Y (0 looks along +Z, 90 along +X), pitch positive up.
フィールド 型 説明 type 必須 "frame" player 必須 uint64seq 必須 uint64client_time_ms 必須 uint64server_time_ms 必須 uint64position 必須 Vec3Meters, Y up. yaw 必須 number (double) pitch 必須 number (double) on_ground booleanjumpboolean
Shot A shot or melee swing A shot or melee swing.
フィールド 型 説明 type 必須 "shot" player 必須 uint64server_time_ms 必須 uint64client_time_ms 必須 uint64weaponuint32yaw 必須 number (double) pitch 必須 number (double) targetuint64 | nullbone"head" | "body" | "limb" | nulllatency_msuint32
AbilityUse Use of a cooldown limited ability Use of a cooldown limited ability.
フィールド 型 説明 type 必須 "ability" player 必須 uint64server_time_ms 必須 uint64ability 必須 uint32
EconomyChange A change of a numeric resource A change of a numeric resource.
フィールド 型 説明 type 必須 "economy" player 必須 uint64server_time_ms 必須 uint64resource 必須 stringdelta 必須 number (double) balance 必須 number (double) reasonstring
ItemEvent Life cycle of a unique item Life cycle of a unique item.
フィールド 型 説明 type 必須 "item" server_time_ms 必須 uint64item 必須 uint64action 必須 "create" | "transfer" | "destroy" fromuint64 | nulltouint64 | null
SoundEvent A sound other players can hear A sound other players can hear.
フィールド 型 説明 type 必須 "sound" player 必須 uint64server_time_ms 必須 uint64position 必須 Vec3Meters, Y up. radius 必須 number (double)
Spawn Spawn or server authorized teleport Spawn or server authorized teleport.
フィールド 型 説明 type 必須 "spawn" player 必須 uint64server_time_ms 必須 uint64position 必須 Vec3Meters, Y up. teamuint32
Profile Optional player metadata Optional player metadata.
フィールド 型 説明 type 必須 "profile" player 必須 uint64server_time_ms 必須 uint64ratingnumber (double) | nullmouse_step_deg number (double) | nullmatches_played uint32 | null
Decoy Honeypot entity that honest clients never render Honeypot entity that honest clients never render.
フィールド 型 説明 type 必須 "decoy" server_time_ms 必須 uint64id 必須 uint64positionVec3 | nullshown_touint64[]
MatchEnd End of a match End of a match.
フィールド 型 説明 type 必須 "match_ end" server_time_ms 必須 uint64
ClientReport Outcome of a client heartbeat check (hint only) Outcome of a client heartbeat check (hint only).
フィールド 型 説明 type 必須 "client" player 必須 uint64server_time_ms 必須 uint64problemsstring[] signalsstring[]
StateReport A value the client claims next to the authoritative server value (rule state.mismatch, after [state] mismatches_to_flag mismatches inside window_ms) and optional bounds (rule state.bounds) A value the client claims next to the authoritative server value (rule state.mismatch, after [state] mismatches_to_flag mismatches inside window_ms) and optional bounds (rule state.bounds). Send it from the game server.
フィールド 型 説明 type 必須 "state" player 必須 uint64server_time_ms 必須 uint64key 必須 stringclient_value number (double) | nullserver_value number (double) | nullminnumber (double) | nullmaxnumber (double) | null
Event One telemetry event, tagged by type One telemetry event, tagged by type.
Frame | Shot | AbilityUse | EconomyChange | ItemEvent | SoundEvent | Spawn | Profile | Decoy | MatchEnd | ClientReport | StateReport
Category"movement" | "view" | "combat" | "aim" | "information" | "network" | "economy" | "account" | "client" | "custom"
Action Ordered from weakest to strongest Ordered from weakest to strongest.
"none" | "log" | "review" | "shadow_ queue" | "kick" | "restrict" | "ban"
Evidence One measured quantity One measured quantity.
フィールド 型 説明 name 必須 stringobserved 必須 number (double) limit 必須 number (double) | nullunit 必須 string
Flag A rule that fired, with the numbers behind it A rule that fired, with the numbers behind it.
フィールド 型 説明 rule 必須 stringcategory 必須 Categoryplayer 必須 uint64server_time_ms 必須 uint64severity 必須 numbersummary 必須 stringevidence 必須 Evidence[]
SignalContribution Contribution of one rule to the posterior Contribution of one rule to the posterior.
フィールド 型 説明 rule 必須 stringgroup 必須 string | nullraw_llr 必須 number (double) applied_llr 必須 number (double) count 必須 uint32
GroupContribution Contribution of one group of correlated rules Contribution of one group of correlated rules.
フィールド 型 説明 group 必須 stringraw_llr 必須 number (double) applied_llr 必須 number (double) cap 必須 number (double) rules 必須 string[]
Explanation log_odds = prior_log_odds + sum(applied_llr) log_odds = prior_log_odds + sum(applied_llr). Enforcing actions need min_rules_for_enforcement independent sources.
Verdict Result of judging new flags Result of judging new flags. server_time_ms is the valkyr-server wall clock (Unix ms).
フィールド 型 説明 player 必須 uint64server_time_ms 必須 uint64flags 必須 Flag[] probability 必須 numbertrust 必須 numberaction 必須 ActionOrdered from weakest to strongest. reason 必須 stringexplainExplanationlog_odds = prior_log_odds + sum(applied_llr). Enforcing actions need min_rules_for_enforcement independent sources.
RuleEvidence Accumulated, decayed log likelihood ratio of one rule Accumulated, decayed log likelihood ratio of one rule.
フィールド 型 説明 llr 必須 number (double) count 必須 uint32last_ms 必須 uint64
TrustReport Current standing of a player Current standing of a player.
フィールド 型 説明 player 必須 uint64probability 必須 number (double) trust 必須 number (double) action 必須 ActionOrdered from weakest to strongest. reason 必須 stringrules 必須 any[][] total_flags 必須 uint64explainExplanationlog_odds = prior_log_odds + sum(applied_llr). Enforcing actions need min_rules_for_enforcement independent sources.
Policy Thresholds of the trust policy Thresholds of the trust policy.
フィールド 型 説明 lognumber (double) | nullreviewnumber (double) | nullshadow_queue number (double) | nullkicknumber (double) | nullrestrictnumber (double) | nullbannumber (double) | nullrestrict_minutes uint64min_rules_for_enforcement uint32
EvidenceBundle Appeal friendly evidence: report, policy and the recent flags Appeal friendly evidence: report, policy and the recent flags.
フィールド 型 説明 format 必須 "valkyr-evidence-v1" player 必須 uint64generated_ms 必須 uint64report 必須 TrustReportCurrent standing of a player. prior 必須 number (double) policy 必須 PolicyThresholds of the trust policy. flags 必須 Flag[] replay_ref 必須 string | null
MatchReport Per player end of match analysis Per player end of match analysis.
フィールド 型 説明 player 必須 uint64bracket 必須 uint32features 必須 objectzscores 必須 objectaim_probability 必須 number (double) trust 必須 TrustReportCurrent standing of a player. seqSeqSummarySequence aim model summary for the match.
SeqSummary Sequence aim model summary for the match Sequence aim model summary for the match.
フィールド 型 説明 windows 必須 uint64aggregate 必須 number (double) | nullmax_aggregate 必須 number (double) | nullprobability 必須 number (double) | nullfired 必須 uint32
EventBatch Telemetry batch Telemetry batch.
EventsResponseフィールド 型 説明 accepted 必須 uint64verdicts 必須 Verdict[]
EndResponse
ActionItem An enforcement decision (polling queue entry and action webhook data) An enforcement decision (polling queue entry and action webhook data).
フィールド 型 説明 id 必須 uint64player 必須 uint64action 必須 ActionOrdered from weakest to strongest. reason 必須 stringmatch_id 必須 string | nullat_ms 必須 uint64
ActionsResponse
VerdictsResponse
Hello First client message First client message.
フィールド 型 説明 client_key 必須 string32 bytes, hex build_hash 必須 string32 bytes, hex manifest_root 必須 string32 bytes, hex protocol 必須 integer
Challenge Server nonce for the next heartbeat Server nonce for the next heartbeat.
フィールド 型 説明 session_id 必須 stringnonce 必須 string32 bytes, hex server_time_ms 必須 uint64rotate_after 必須 uint64
Check"not_ checked" | "unsupported" | "clear" | "detected"
ModuleSignalフィールド 型 説明 status 必須 Checkcount 必須 uint32name_hashes 必須 string[]
OverlayWindowフィールド 型 説明 title_hash 必須 string32 bytes, hex topmost 必須 booleanlayered 必須 booleantransparent 必須 booleansame_process 必須 boolean
OverlaySignal
ClockSignalフィールド 型 説明 status 必須 Checkwall_jumps 必須 uint32max_wall_jump_ms 必須 uint64speed_ppm 必須 uint64 | null
Signals Tamper signals computed on the client (hints only) Tamper signals computed on the client (hints only).
Heartbeat Ed25519 signed client report Ed25519 signed client report.
フィールド 型 説明 session_id 必須 stringcounter 必須 uint64nonce 必須 string32 bytes, hex client_time_ms 必須 uint64monotonic_ms 必須 uint64build_hash 必須 string32 bytes, hex manifest_root 必須 string32 bytes, hex code_hash string | nullsignals 必須 SignalsTamper signals computed on the client (hints only). next_key string | nullsignature 必須 string64 bytes, hex
Problem Protocol problem; extra fields depend on kind (got, last, age_ms, gap_ms, max_ms, drift_ms, ratio_ppm, used, limit) Protocol problem; extra fields depend on kind (got, last, age_ms, gap_ms, max_ms, drift_ms, ratio_ppm, used, limit).
フィールド 型 説明 kind 必須 "unsupported_ protocol" | "bad_ client_key" | "wrong_ session" | "bad_ signature" | "replayed_ counter" | "unknown_ nonce" | "expired_ nonce" | "build_ not_allowed" | "build_ changed" | "manifest_ mismatch" | "late" | "clock_ jump" | "monotonic_ regressed" | "speed_ mismatch" | "rotation_ overdue" | "bad_ next_key"
HeartbeatReport Verification result Verification result.
フィールド 型 説明 ok 必須 booleanproblems 必須 Problem[] signals 必須 SignalsTamper signals computed on the client (hints only). raised_signals 必須 string[]
SessionRequestフィールド 型 説明 player 必須 uint64hello 必須 HelloFirst client message.
SessionResponseフィールド 型 説明 session_id 必須 stringchallenge 必須 ChallengeServer nonce for the next heartbeat.
HeartbeatRequestフィールド 型 説明 heartbeat 必須 HeartbeatEd25519 signed client report.
HeartbeatResponse
JurorRequestフィールド 型 説明 id 必須 uint64weight 必須 number
CaseRequest gold is the known answer of a calibration case (never shown to jurors) gold is the known answer of a calibration case (never shown to jurors).
フィールド 型 説明 player 必須 uint64goldboolean | nullexclusionsuint64[]
CaseCreatedフィールド 型 説明 case_id 必須 uint64assigned 必須 uint64[]
CaseStatus"open" | "closed"
CaseSummaryフィールド 型 説明 id 必須 uint64suspect 必須 uint64opened_ms 必須 uint64status 必須 CaseStatusvotedboolean
CaseList
Decision"Guilty" | "NotGuilty" | "Inconclusive"
CaseOutcome Weighted jury outcome Weighted jury outcome.
フィールド 型 説明 decision 必須 Decisioncheating_weight 必須 number (double) clean_weight 必須 number (double) unsure 必須 uint32votes 必須 uint32closed_ms 必須 uint64
CaseView Case without votes (votes stay hidden while open) Case without votes (votes stay hidden while open).
フィールド 型 説明 id 必須 uint64suspect 必須 uint64opened_ms 必須 uint64status 必須 CaseStatusoutcomeCaseOutcomeWeighted jury outcome.
CaseDetailフィールド 型 説明 case 必須 CaseViewCase without votes (votes stay hidden while open). evidence 必須 EvidenceBundleAppeal friendly evidence: report, policy and the recent flags.
VoteChoice"cheating" | "clean" | "unsure"
VoteRequest juror may be omitted with a key bound to a juror juror may be omitted with a key bound to a juror.
CollusionPairフィールド 型 説明 a 必須 uint64b 必須 uint64shared 必須 uint32agreement 必須 number (double) against_majority 必須 uint32
CollusionResponse
Healthフィールド 型 説明 status 必須 "ok" version 必須 stringmatches 必須 uint64players 必須 uint64
AuditEntryフィールド 型 説明 at_ms 必須 uint64actor 必須 stringaction 必須 stringtarget 必須 stringdetail 必須 string
AuditResponse
Error Every 4xx and 5xx body Every 4xx and 5xx body.
VerdictDataフィールド 型 説明 match_id 必須 string | nullverdict 必須 VerdictResult of judging new flags. server_time_ms is the valkyr-server wall clock (Unix ms).
ReviewClosedDataフィールド 型 説明 case_id 必須 uint64suspect 必須 uint64outcome 必須 CaseOutcomeWeighted jury outcome.
DiscordBody Body of format = "discord" webhooks Body of format = "discord" webhooks.
フィールド 型 説明 content 必須 stringembeds 必須 object[]
BanKind shadow: matchmaking with other flagged players only; temporary: until expires_ms; permanent: until revoked shadow: matchmaking with other flagged players only; temporary: until expires_ms; permanent: until revoked.
"shadow" | "temporary" | "permanent"
BanStatus"queued" | "active" | "expired" | "revoked"
BanSource"manual" | "policy"
GuardSignalRecord An accepted guard signal An accepted guard signal.
フィールド 型 説明 at_ms 必須 uint64key_id 必須 stringtype 必須 stringrule 必須 stringcount 必須 uint32detailstring | null
BanEvidence Snapshot stored with a ban: recent flags, guard signals, replay ids, model scores and the trust report Snapshot stored with a ban: recent flags, guard signals, replay ids, model scores and the trust report.
Ban A ban A ban. Lists and webhooks carry it without evidence; GET /v1/bans/{ban_ id} includes it. A queued ban waits for its wave (activates_ms).
フィールド 型 説明 id 必須 uint64player 必須 uint64kind 必須 BanKindshadow: matchmaking with other flagged players only; temporary: until expires_ms; permanent: until revoked. scope 必須 stringglobal, game:<id> , server:<id> or league:<id> . reason 必須 stringstatus 必須 BanStatussource 必須 BanSourcecreated_by 必須 stringcreated_ms 必須 uint64activates_msuint64 | nullstarted_msuint64 | nullduration_secs uint64 | nullexpires_msuint64 | nullwave_iduint64 | nullended_msuint64 | nullend_reason string | nullmatch_idstring | nullevidenceBanEvidenceSnapshot stored with a ban: recent flags, guard signals, replay ids, model scores and the trust report.
BanRequest duration_secs is required for temporary bans duration_secs is required for temporary bans. wave = true queues the ban for the next wave when [bans] wave_mode is not off.
フィールド 型 説明 player 必須 uint64kind 必須 BanKindshadow: matchmaking with other flagged players only; temporary: until expires_ms; permanent: until revoked. scopestringglobal, game:<id> , server:<id> or league:<id> . reason 必須 stringduration_secs integer | nullwavebooleanreplay_ids string[] model_scores objectmatch_idstring | null
BanList
AppealFiler"player" | "operator"
AppealStatus"open" | "upheld" | "overturned" | "reduced"
AppealDecision"uphold" | "overturn" | "reduce"
AppealOutcomeフィールド 型 説明 decision 必須 AppealDecisionnote 必須 stringreviewer 必須 stringdecided_ms 必須 uint64
Appeal case_id links the review jury case opened for the appeal when [bans] appeal_jury = true case_id links the review jury case opened for the appeal when [bans] appeal_jury = true.
フィールド 型 説明 id 必須 uint64ban_id 必須 uint64player 必須 uint64filed_by 必須 AppealFilerstatement 必須 stringstatus 必須 AppealStatusfiled_ms 必須 uint64case_iduint64 | nulloutcomeAppealOutcome | null
AppealRequest statement is limited to [bans] max_statement_chars statement is limited to [bans] max_statement_chars.
DecisionRequest uphold keeps the ban; overturn revokes it and clears the player's trust record; reduce makes it temporary with duration_secs counted from the decision uphold keeps the ban; overturn revokes it and clears the player's trust record; reduce makes it temporary with duration_secs counted from the decision.
フィールド 型 説明 decision 必須 AppealDecisionnotestringduration_secs integer | null
AppealList
WarningRequestフィールド 型 説明 player 必須 uint64reason 必須 stringscopestringglobal, game:<id> , server:<id> or league:<id> . match_idstring | null
Warningフィールド 型 説明 id 必須 uint64player 必須 uint64reason 必須 stringscope 必須 stringglobal, game:<id> , server:<id> or league:<id> . match_idstring | nullby 必須 stringat_ms 必須 uint64
KickRequestフィールド 型 説明 player 必須 uint64reason 必須 stringmatch_idstring | null
Kick action_id is the kick entry in the GET /v1/actions queue action_id is the kick entry in the GET /v1/actions queue.
フィールド 型 説明 id 必須 uint64player 必須 uint64reason 必須 stringmatch_idstring | nullby 必須 stringat_ms 必須 uint64action_id 必須 uint64
WaveTrigger"schedule" | "manual"
Wave A ban wave: queued bans activated together A ban wave: queued bans activated together.
フィールド 型 説明 id 必須 uint64executed_ms 必須 uint64trigger 必須 WaveTriggerbans 必須 uint64[]
WavesResponseフィールド 型 説明 mode 必須 "off" | "interval" | "delay" next_wave_ms 必須 uint64 | nullqueued 必須 Ban[] history 必須 Wave[]
LinkRequestフィールド 型 説明 player 必須 uint64kind 必須 stringToken kind, one of [links] kinds when that list is set (for example device, payment, ip_prefix). token 必須 stringRaw token; only a salted SHA-256 hash is stored.
LinkViewフィールド 型 説明 account 必須 uint64shared_kinds 必須 string[] bans_in_effect 必須 uint64[]
PlayerLinks Accounts sharing a token hash Accounts sharing a token hash. evasion_risk = 1 - 0.5^n over linked accounts with a ban in effect.
フィールド 型 説明 player 必須 uint64links 必須 LinkView[] evasion_risk 必須 number (double)
EvasionLinkフィールド 型 説明 account 必須 uint64shared_kinds 必須 string[] ban_id 必須 uint64kind 必須 BanKindshadow: matchmaking with other flagged players only; temporary: until expires_ms; permanent: until revoked. scope 必須 stringglobal, game:<id> , server:<id> or league:<id> .
Evasion
Standing Can this player join? Bans in effect for the requested scopes (global bans always apply), and the ban evasion check over linked accounts Can this player join? Bans in effect for the requested scopes (global bans always apply), and the ban evasion check over linked accounts.
フィールド 型 説明 player 必須 uint64scopes 必須 string[] allowed 必須 booleanbanned 必須 booleanshadow 必須 booleanbans 必須 Ban[] warnings 必須 uint64evasion 必須 Evasion
GuardSignalフィールド 型 説明 type 必須 stringOne of integrity_violation, injected_code, memory_editor, debugger, heartbeat_loss, vulnerable_driver, unsigned_driver, event_flood. Unknown types are ignored and listed in the response. countintegerdetailstring | nullobserved_msuint64 | null
GuardPayload Signed content Signed content. The player comes from the live client session when session_id is known, else from player. seq must increase per key and session.
フィールド 型 説明 version 必須 1gamestring | nullsession_idstring | nullplayeruint64 | nullseq 必須 uint64sent_ms 必須 uint64signals 必須 GuardSignal[]
GuardEnvelope Ed25519 signature (verify_strict) over "valkyr-guard-signal-v1 " + NUL + payload, by a key pinned in [[guard.keys]] Ed25519 signature (verify_strict) over "valkyr-guard-signal-v1 " + NUL + payload, by a key pinned in [[guard.keys]].
フィールド 型 説明 key_id 必須 stringpayload 必須 stringGuardPayload as JSON text, signed byte for byte. signature 必須 string64 bytes, hex
GuardResponseフィールド 型 説明 player 必須 uint64accepted 必須 uint64ignored 必須 string[] verdicts 必須 Verdict[]
GuardSignalDataフィールド 型 説明 player 必須 uint64session_id 必須 string | nullseq 必須 uint64signals 必須 GuardSignalRecord[] verdict 必須 Verdict | null
WebhookEnvelope Body of every json format webhook Body of every json format webhook.
フィールド 型 説明 id 必須 stringtype 必須 "verdict" | "action" | "review. closed" | "kick" | "warning" | "ban. created" | "ban. activated" | "ban. updated" | "ban. revoked" | "ban. expired" | "wave. executed" | "appeal. filed" | "appeal. decided" | "guard. signal" created_ms 必須 uint64data 必須 ActionItem | Appeal | Ban | GuardSignalData | Kick | ReviewClosedData | VerdictData | Warning | Wave