Servidor

API HTTP

La API HTTP v1 de valkyr-server, generada desde docs/openapi.json: cada endpoint, su rol, campos, respuestas y ejemplos listos para pegar.

valkyr-server habla JSON sobre HTTP en 127.0.0.1:7420 por defecto. Toda solicitud excepto /v1/health necesita Authorization: Bearer <key>, y cada clave tiene roles (consulta Configuración). La referencia de abajo se genera desde docs/openapi.json, que la suite de pruebas del servidor contrasta con las rutas reales.

Convenciones

Los jugadores son ids numéricos que elige tu juego. Los tiempos están en milisegundos. Las escrituras aceptan un encabezado Idempotency-Key, así que una solicitud reintentada se aplica una sola vez. Los errores vuelven como {"error": {"code": "...", "message": "..."}} con un código estable, y con un encabezado Retry-After cuando superas el límite de solicitudes.

Línea de comandos

El mismo binario se comunica con un servidor en ejecución para las tareas de revisión:

valkyr helpText
valkyr: open anti-cheat for every game. Server first; client and kernel tiers are optional. usage:  valkyr init [--path valkyr.toml] [--force]      write a commented example config with fresh random keys  valkyr run [--config valkyr.toml]      run the server (applies pending database migrations first)  valkyr migrate [--config valkyr.toml] [--status]      apply pending database migrations of the [storage] backend, or with      --status only print the schema version  valkyr simulate [--seed N] [--matches N]      run the deterministic simulator and print its report  valkyr verify-webhook --secret S --signature "t=..,v1=.." --body-file F [--now-ms N] [--tolerance-ms N]      check a webhook signature; prints ok or the reason  valkyr review list [--juror N]  valkyr review show <case> [--juror N]  valkyr review vote <case> <cheating|clean|unsure> [--juror N]  valkyr review close <case>      talk to a running server; options --server URL (default $VALKYR_SERVER or      http://127.0.0.1:7420) and --token KEY (default $VALKYR_TOKEN)  valkyr version
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.

Telemetría

Submit telemetry

POST/v1/matches/{match_id}/eventsRol: 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.

Parámetros

NombreEnTipoDescripción
match_id obligatoriopathstringMatch id chosen by the game. Created on first use.
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud EventBatch

CampoTipoDescripción
events obligatorioEvent[]

Respuestas

  • 200 OK EventsResponse
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 413 Body or batch too large. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
  • 503 Capacity limit reached. Error
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}]}'

Declare level geometry

PUT/v1/matches/{match_id}/worldRol: ingest

Parámetros

NombreEnTipoDescripción
match_id obligatoriopathstringMatch id chosen by the game. Created on first use.

Cuerpo de la solicitud World

CampoTipoDescripción
collidersAabb[]
occludersAabb[]
floor_ynumber (double) | null

Respuestas

  • 204 Done, no body.
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
  • 503 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}'

End a match

POST/v1/matches/{match_id}/endRol: ingest

Ingests a match_end event, returns the per player reports and drops the match engine. Trust persists in the global ledger.

Parámetros

NombreEnTipoDescripción
match_id obligatoriopathstringMatch id chosen by the game. Created on first use.
Idempotency-KeyheaderstringOptional. 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.

Respuestas

  • 200 OK EndResponse
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 404 Not found. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl -X POST http://127.0.0.1:7420/v1/matches/match-1/end \  -H "Authorization: Bearer $VALKYR_KEY"

Poll the enforcement queue

GET/v1/actionsRol: 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.

Parámetros

NombreEnTipoDescripción
sincequeryuint64Cursor from the previous poll (0 at start).
limitqueryintegerMaximum entries.

Respuestas

  • 200 OK ActionsResponse
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/actions \  -H "Authorization: Bearer $VALKYR_KEY"

Jugadores

Trust report

GET/v1/players/{player}/trustRol: read

Parámetros

NombreEnTipoDescripción
player obligatoriopathuint64Player id.

Respuestas

  • 200 OK TrustReport
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/players/7/trust \  -H "Authorization: Bearer $VALKYR_KEY"

Verdict history, newest first

GET/v1/players/{player}/verdictsRol: read

Parámetros

NombreEnTipoDescripción
player obligatoriopathuint64Player id.
limitqueryintegerMaximum entries.

Respuestas

  • 200 OK VerdictsResponse
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/players/7/verdicts \  -H "Authorization: Bearer $VALKYR_KEY"

Evidence bundle

GET/v1/players/{player}/evidenceRol: read

Parámetros

NombreEnTipoDescripción
player obligatoriopathuint64Player id.

Respuestas

  • 200 OK EvidenceBundle
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/players/7/evidence \  -H "Authorization: Bearer $VALKYR_KEY"

Grant an appeal

POST/v1/players/{player}/clearRol: admin

Clears the player's trust record and verdict history. Audit logged.

Parámetros

NombreEnTipoDescripción
player obligatoriopathuint64Player id.
Idempotency-KeyheaderstringOptional. 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.

Respuestas

  • 204 Done, no body.
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 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"

Sesiones de cliente

Open a client session

POST/v1/sessionsRol: ingest

Verifies the hello against the [client] policy and returns the first challenge.

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud SessionRequest

CampoTipoDescripción
player obligatoriouint64
hello obligatorioHelloFirst client message.

Respuestas

  • 200 OK SessionResponse
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
  • 503 Capacity limit reached. Error
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}}'

Verify a heartbeat

POST/v1/sessions/{session_id}/heartbeatRol: ingest

Problems and raised signals become a client event for the player (rules client.problem and client.signal) fed to the trust ledger.

Parámetros

NombreEnTipoDescripción
session_id obligatoriopathstringSession id.
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud HeartbeatRequest

CampoTipoDescripción
heartbeat obligatorioHeartbeatEd25519 signed client report.

Respuestas

  • 200 OK HeartbeatResponse
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 404 Not found. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
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"}}'

Jurado de revisión

Add or update a juror

POST/v1/review/jurorsRol: admin

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud JurorRequest

CampoTipoDescripción
id obligatoriouint64
weight obligatorionumber

Respuestas

  • 204 Done, no body.
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 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}'

Open a review case

POST/v1/review/casesRol: admin

Snapshots the suspect's evidence bundle and draws a jury.

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud CaseRequest

CampoTipoDescripción
player obligatoriouint64
goldboolean | null
exclusionsuint64[]

Respuestas

  • 200 OK CaseCreated
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 409 Conflict with the current state. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 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 \  -H "Authorization: Bearer $VALKYR_KEY" \  -H "Content-Type: application/json" \  -d '{"player":7,"gold":null}'

Cases assigned to a juror

GET/v1/review/casesRol: review

Parámetros

NombreEnTipoDescripción
jurorqueryuint64Juror id. Optional for keys bound to a juror (must match), required for unbound review keys, optional for admins (all cases).

Respuestas

  • 200 OK CaseList
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/review/cases \  -H "Authorization: Bearer $VALKYR_KEY"

Case and evidence

GET/v1/review/cases/{case_id}Rol: review

Votes stay hidden while the case is open. A juror must be assigned to the case.

Parámetros

NombreEnTipoDescripción
case_id obligatoriopathuint64Case id.
jurorqueryuint64Juror id. Optional for keys bound to a juror (must match), required for unbound review keys, optional for admins (all cases).

Respuestas

  • 200 OK CaseDetail
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 404 Not found. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/review/cases/1 \  -H "Authorization: Bearer $VALKYR_KEY"

Cast a vote

POST/v1/review/cases/{case_id}/votesRol: review

One vote per juror and case.

Parámetros

NombreEnTipoDescripción
case_id obligatoriopathuint64Case id.
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud VoteRequest

CampoTipoDescripción
juroruint64
choice obligatorioVoteChoice

Respuestas

  • 204 Done, no body.
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 404 Not found. Error
  • 409 Conflict with the current state. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 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"}'

Close a case

POST/v1/review/cases/{case_id}/closeRol: admin

Tallies weighted votes, grades jurors and sends the review.closed webhook.

Parámetros

NombreEnTipoDescripción
case_id obligatoriopathuint64Case id.
Idempotency-KeyheaderstringOptional. 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.

Respuestas

  • 200 OK CaseOutcome
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 404 Not found. Error
  • 409 Conflict with the current state. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 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/close \  -H "Authorization: Bearer $VALKYR_KEY"

Juror pairs voting together against the majority

GET/v1/review/collusionRol: admin

Respuestas

  • 200 OK CollusionResponse
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/review/collusion \  -H "Authorization: Bearer $VALKYR_KEY"

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.

Respuestas

  • 200 HTML.
curl http://127.0.0.1:7420/review

moderation

Ban a player

POST/v1/bansRol: 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.

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud BanRequest

CampoTipoDescripción
player obligatoriouint64
kind obligatorioBanKindshadow: matchmaking with other flagged players only; temporary: until expires_ms; permanent: until revoked.
scopestringglobal, game:<id>, server:<id> or league:<id>.
reason obligatoriostring
duration_secsinteger | null
waveboolean
replay_idsstring[]
model_scoresobject
match_idstring | null

Respuestas

  • 201 Created. Ban
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 409 Conflict with the current state. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
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"}'

List bans, newest first

GET/v1/bansRol: moderator

Without evidence.

Parámetros

NombreEnTipoDescripción
playerqueryuint64Only this player.
scopequerystringComma separated scopes (global, game:<id>, server:<id>, league:<id>). Empty: every scope.
statusquery"queued" | "active" | "expired" | "revoked"Only this status.
limitqueryintegerMaximum entries.

Respuestas

  • 200 OK BanList
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/bans \  -H "Authorization: Bearer $VALKYR_KEY"

Ban with its evidence bundle

GET/v1/bans/{ban_id}Rol: moderator

Parámetros

NombreEnTipoDescripción
ban_id obligatoriopathuint64Ban id.

Respuestas

  • 200 OK Ban
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 404 Not found. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/bans/1 \  -H "Authorization: Bearer $VALKYR_KEY"

Unban

DELETE/v1/bans/{ban_id}Rol: moderator

Revokes a queued or active ban (ban.revoked). Audit logged.

Parámetros

NombreEnTipoDescripción
ban_id obligatoriopathuint64Ban id.
reasonquerystringWhy the ban is lifted.

Respuestas

  • 200 OK Ban
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 404 Not found. Error
  • 409 Conflict with the current state. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl -X DELETE http://127.0.0.1:7420/v1/bans/1 \  -H "Authorization: Bearer $VALKYR_KEY"

File an appeal

POST/v1/bans/{ban_id}/appealsRol: 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.

Parámetros

NombreEnTipoDescripción
ban_id obligatoriopathuint64Ban id.
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud AppealRequest

CampoTipoDescripción
filed_by obligatorioAppealFiler
statement obligatoriostring

Respuestas

  • 201 Created. Appeal
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 404 Not found. Error
  • 409 Conflict with the current state. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
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."}'

List appeals, newest first

GET/v1/appealsRol: moderator

Parámetros

NombreEnTipoDescripción
statusquery"open" | "upheld" | "overturned" | "reduced"Only this status.
playerqueryuint64Only this player.
limitqueryintegerMaximum entries.

Respuestas

  • 200 OK AppealList
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/appeals \  -H "Authorization: Bearer $VALKYR_KEY"

Decide an appeal

POST/v1/appeals/{appeal_id}/decisionRol: 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.

Parámetros

NombreEnTipoDescripción
appeal_id obligatoriopathuint64Appeal id.
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud DecisionRequest

CampoTipoDescripción
decision obligatorioAppealDecision
notestring
duration_secsinteger | null

Respuestas

  • 200 OK Appeal
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 404 Not found. Error
  • 409 Conflict with the current state. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
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}'

Warn a player

POST/v1/warningsRol: moderator

Sends warning. Audit logged.

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud WarningRequest

CampoTipoDescripción
player obligatoriouint64
reason obligatoriostring
scopestringglobal, game:<id>, server:<id> or league:<id>.
match_idstring | null

Respuestas

  • 201 Created. Warning
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
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"}'

Kick a player

POST/v1/kicksRol: moderator

Queues a kick action for the game to poll (GET /v1/actions) and sends kick. Audit logged.

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud KickRequest

CampoTipoDescripción
player obligatoriouint64
reason obligatoriostring
match_idstring | null

Respuestas

  • 201 Created. Kick
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
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"}'

Ban wave state

GET/v1/wavesRol: 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.

Respuestas

  • 200 OK WavesResponse
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/waves \  -H "Authorization: Bearer $VALKYR_KEY"

Run a ban wave now

POST/v1/waves/runRol: admin

Activates every queued ban. Sends ban.activated per ban and wave.executed. Audit logged.

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringOptional. 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.

Respuestas

  • 200 OK Wave
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl -X POST http://127.0.0.1:7420/v1/waves/run \  -H "Authorization: Bearer $VALKYR_KEY"

Join check

GET/v1/players/{player}/standingRol: 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.

Parámetros

NombreEnTipoDescripción
player obligatoriopathuint64Player id.
scopequerystringComma separated scopes (global, game:<id>, server:<id>, league:<id>). Empty: every scope.

Respuestas

  • 200 OK Standing
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/players/7/standing \  -H "Authorization: Bearer $VALKYR_KEY"

Guard

Ingest signed guard signals

POST/v1/guard/signalsRol: 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.

Parámetros

NombreEnTipoDescripción
Idempotency-KeyheaderstringOptional. 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.

Cuerpo de la solicitud GuardEnvelope

CampoTipoDescripción
key_id obligatoriostring
payload obligatoriostringGuardPayload as JSON text, signed byte for byte.
signature obligatoriostring64 bytes, hex

Respuestas

  • 200 OK GuardResponse
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 409 Conflict with the current state. Error
  • 413 Body or batch too large. Error
  • 422 Idempotency-Key reused with a different request, or the request cannot be resolved. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
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"}'

Operaciones

Health check

GET/v1/health

No key needed.

Respuestas

curl http://127.0.0.1:7420/v1/health

Audit log tail, newest first

GET/v1/auditRol: admin

The full log is an append only JSON lines file on disk.

Parámetros

NombreEnTipoDescripción
limitqueryintegerMaximum entries.

Respuestas

  • 200 OK AuditResponse
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
curl http://127.0.0.1:7420/v1/audit \  -H "Authorization: Bearer $VALKYR_KEY"

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.

Respuestas

  • 200 Metrics.
  • 401 Missing or unknown key. Error
curl http://127.0.0.1:7420/metrics

Live event stream (Server-Sent Events)

GET/v1/streamRol: 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).

Parámetros

NombreEnTipoDescripción
typesquerystringComma separated event types; a prefix such as ban matches every ban.* type.
playerqueryuint64Only events about this player.
matchquerystringOnly events about this match.

Respuestas

  • 200 Event stream.
  • 400 Invalid JSON, parameters or values. Error
  • 401 Missing or unknown key. Error
  • 403 The key lacks the required role. Error
  • 429 Rate limited (per key token bucket). Retry after the Retry-After seconds. Error
  • 503 Capacity limit reached. Error
curl http://127.0.0.1:7420/v1/stream \  -H "Authorization: Bearer $VALKYR_KEY"

Webhooks

Solicitudes que valkyr-server envía a tus endpoints. Verifica el encabezado Valkyr-Signature antes de confiar en el cuerpo.

verdict

Every verdict whose action is at least the webhook's min_action (default review).

POST tu endpointJSON
{  "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.

POST tu endpointJSON
{  "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.

POST tu endpointJSON
{  "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).

POST tu endpointJSON
{  "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).

POST tu endpointJSON
{  "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.

POST tu endpointJSON
{  "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.

POST tu endpointJSON
{  "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).

POST tu endpointJSON
{  "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).

POST tu endpointJSON
{  "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.

POST tu endpointJSON
{  "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.

POST tu endpointJSON
{  "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.

POST tu endpointJSON
{  "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.

POST tu endpointJSON
{  "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.

POST tu endpointJSON
{  "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)"    }  }}

Esquemas

Vec3 Meters, Y up

Meters, Y up.

CampoTipoDescripción
x obligatorionumber (double)
y obligatorionumber (double)
z obligatorionumber (double)
Aabb Axis aligned box

Axis aligned box.

CampoTipoDescripción
min obligatorioVec3Meters, Y up.
max obligatorioVec3Meters, Y up.
World Static level geometry

Static level geometry. Colliders block movement and sight, occluders only sight.

CampoTipoDescripción
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.

CampoTipoDescripción
type obligatorio"frame"
player obligatoriouint64
seq obligatoriouint64
client_time_ms obligatoriouint64
server_time_ms obligatoriouint64
position obligatorioVec3Meters, Y up.
yaw obligatorionumber (double)
pitch obligatorionumber (double)
on_groundboolean
jumpboolean
Shot A shot or melee swing

A shot or melee swing.

CampoTipoDescripción
type obligatorio"shot"
player obligatoriouint64
server_time_ms obligatoriouint64
client_time_ms obligatoriouint64
weaponuint32
yaw obligatorionumber (double)
pitch obligatorionumber (double)
targetuint64 | null
bone"head" | "body" | "limb" | null
latency_msuint32
AbilityUse Use of a cooldown limited ability

Use of a cooldown limited ability.

CampoTipoDescripción
type obligatorio"ability"
player obligatoriouint64
server_time_ms obligatoriouint64
ability obligatoriouint32
EconomyChange A change of a numeric resource

A change of a numeric resource.

CampoTipoDescripción
type obligatorio"economy"
player obligatoriouint64
server_time_ms obligatoriouint64
resource obligatoriostring
delta obligatorionumber (double)
balance obligatorionumber (double)
reasonstring
ItemEvent Life cycle of a unique item

Life cycle of a unique item.

CampoTipoDescripción
type obligatorio"item"
server_time_ms obligatoriouint64
item obligatoriouint64
action obligatorio"create" | "transfer" | "destroy"
fromuint64 | null
touint64 | null
SoundEvent A sound other players can hear

A sound other players can hear.

CampoTipoDescripción
type obligatorio"sound"
player obligatoriouint64
server_time_ms obligatoriouint64
position obligatorioVec3Meters, Y up.
radius obligatorionumber (double)
Spawn Spawn or server authorized teleport

Spawn or server authorized teleport.

CampoTipoDescripción
type obligatorio"spawn"
player obligatoriouint64
server_time_ms obligatoriouint64
position obligatorioVec3Meters, Y up.
teamuint32
Profile Optional player metadata

Optional player metadata.

CampoTipoDescripción
type obligatorio"profile"
player obligatoriouint64
server_time_ms obligatoriouint64
ratingnumber (double) | null
mouse_step_degnumber (double) | null
matches_playeduint32 | null
Decoy Honeypot entity that honest clients never render

Honeypot entity that honest clients never render.

CampoTipoDescripción
type obligatorio"decoy"
server_time_ms obligatoriouint64
id obligatoriouint64
positionVec3 | null
shown_touint64[]
MatchEnd End of a match

End of a match.

CampoTipoDescripción
type obligatorio"match_end"
server_time_ms obligatoriouint64
ClientReport Outcome of a client heartbeat check (hint only)

Outcome of a client heartbeat check (hint only).

CampoTipoDescripción
type obligatorio"client"
player obligatoriouint64
server_time_ms obligatoriouint64
problemsstring[]
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.

CampoTipoDescripción
type obligatorio"state"
player obligatoriouint64
server_time_ms obligatoriouint64
key obligatoriostring
client_valuenumber (double) | null
server_valuenumber (double) | null
minnumber (double) | null
maxnumber (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.

CampoTipoDescripción
name obligatoriostring
observed obligatorionumber (double)
limit obligatorionumber (double) | null
unit obligatoriostring
Flag A rule that fired, with the numbers behind it

A rule that fired, with the numbers behind it.

CampoTipoDescripción
rule obligatoriostring
category obligatorioCategory
player obligatoriouint64
server_time_ms obligatoriouint64
severity obligatorionumber
summary obligatoriostring
evidence obligatorioEvidence[]
SignalContribution Contribution of one rule to the posterior

Contribution of one rule to the posterior.

CampoTipoDescripción
rule obligatoriostring
group obligatoriostring | null
raw_llr obligatorionumber (double)
applied_llr obligatorionumber (double)
count obligatoriouint32
GroupContribution Contribution of one group of correlated rules

Contribution of one group of correlated rules.

CampoTipoDescripción
group obligatoriostring
raw_llr obligatorionumber (double)
applied_llr obligatorionumber (double)
cap obligatorionumber (double)
rules obligatoriostring[]
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.

CampoTipoDescripción
prior_log_odds obligatorionumber (double)
log_odds obligatorionumber (double)
contributions obligatorioSignalContribution[]
groups obligatorioGroupContribution[]
independent_sources obligatoriouint64
Verdict Result of judging new flags

Result of judging new flags. server_time_ms is the valkyr-server wall clock (Unix ms).

CampoTipoDescripción
player obligatoriouint64
server_time_ms obligatoriouint64
flags obligatorioFlag[]
probability obligatorionumber
trust obligatorionumber
action obligatorioActionOrdered from weakest to strongest.
reason obligatoriostring
explainExplanationlog_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.

CampoTipoDescripción
llr obligatorionumber (double)
count obligatoriouint32
last_ms obligatoriouint64
TrustReport Current standing of a player

Current standing of a player.

CampoTipoDescripción
player obligatoriouint64
probability obligatorionumber (double)
trust obligatorionumber (double)
action obligatorioActionOrdered from weakest to strongest.
reason obligatoriostring
rules obligatorioany[][]
total_flags obligatoriouint64
explainExplanationlog_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.

CampoTipoDescripción
lognumber (double) | null
reviewnumber (double) | null
shadow_queuenumber (double) | null
kicknumber (double) | null
restrictnumber (double) | null
bannumber (double) | null
restrict_minutesuint64
min_rules_for_enforcementuint32
EvidenceBundle Appeal friendly evidence: report, policy and the recent flags

Appeal friendly evidence: report, policy and the recent flags.

CampoTipoDescripción
format obligatorio"valkyr-evidence-v1"
player obligatoriouint64
generated_ms obligatoriouint64
report obligatorioTrustReportCurrent standing of a player.
prior obligatorionumber (double)
policy obligatorioPolicyThresholds of the trust policy.
flags obligatorioFlag[]
replay_ref obligatoriostring | null
MatchReport Per player end of match analysis

Per player end of match analysis.

CampoTipoDescripción
player obligatoriouint64
bracket obligatoriouint32
features obligatorioobject
zscores obligatorioobject
aim_probability obligatorionumber (double)
trust obligatorioTrustReportCurrent 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.

CampoTipoDescripción
windows obligatoriouint64
aggregate obligatorionumber (double) | null
max_aggregate obligatorionumber (double) | null
probability obligatorionumber (double) | null
fired obligatoriouint32
EventBatch Telemetry batch

Telemetry batch.

CampoTipoDescripción
events obligatorioEvent[]
EventsResponse
CampoTipoDescripción
accepted obligatoriouint64
verdicts obligatorioVerdict[]
EndResponse
CampoTipoDescripción
reports obligatorioMatchReport[]
verdicts obligatorioVerdict[]
ActionItem An enforcement decision (polling queue entry and action webhook data)

An enforcement decision (polling queue entry and action webhook data).

CampoTipoDescripción
id obligatoriouint64
player obligatoriouint64
action obligatorioActionOrdered from weakest to strongest.
reason obligatoriostring
match_id obligatoriostring | null
at_ms obligatoriouint64
ActionsResponse
CampoTipoDescripción
actions obligatorioActionItem[]
cursor obligatoriouint64
VerdictsResponse
CampoTipoDescripción
verdicts obligatorioVerdict[]
Hello First client message

First client message.

CampoTipoDescripción
client_key obligatoriostring32 bytes, hex
build_hash obligatoriostring32 bytes, hex
manifest_root obligatoriostring32 bytes, hex
protocol obligatoriointeger
Challenge Server nonce for the next heartbeat

Server nonce for the next heartbeat.

CampoTipoDescripción
session_id obligatoriostring
nonce obligatoriostring32 bytes, hex
server_time_ms obligatoriouint64
rotate_after obligatoriouint64
Check

"not_checked" | "unsupported" | "clear" | "detected"

ModuleSignal
CampoTipoDescripción
status obligatorioCheck
count obligatoriouint32
name_hashes obligatoriostring[]
OverlayWindow
CampoTipoDescripción
title_hash obligatoriostring32 bytes, hex
topmost obligatorioboolean
layered obligatorioboolean
transparent obligatorioboolean
same_process obligatorioboolean
OverlaySignal
CampoTipoDescripción
status obligatorioCheck
windows obligatorioOverlayWindow[]
ClockSignal
CampoTipoDescripción
status obligatorioCheck
wall_jumps obligatoriouint32
max_wall_jump_ms obligatoriouint64
speed_ppm obligatoriouint64 | null
Signals Tamper signals computed on the client (hints only)

Tamper signals computed on the client (hints only).

CampoTipoDescripción
debugger obligatorioCheck
hardware_breakpoints obligatorioCheck
timing_anomaly obligatorioCheck
hypervisor obligatorioCheck
preload_env obligatorioCheck
unexpected_modules obligatorioModuleSignal
overlay_windows obligatorioOverlaySignal
clock obligatorioClockSignal
code_drift obligatorioCheck
Heartbeat Ed25519 signed client report

Ed25519 signed client report.

CampoTipoDescripción
session_id obligatoriostring
counter obligatoriouint64
nonce obligatoriostring32 bytes, hex
client_time_ms obligatoriouint64
monotonic_ms obligatoriouint64
build_hash obligatoriostring32 bytes, hex
manifest_root obligatoriostring32 bytes, hex
code_hashstring | null
signals obligatorioSignalsTamper signals computed on the client (hints only).
next_keystring | null
signature obligatoriostring64 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).

CampoTipoDescripción
kind obligatorio"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.

CampoTipoDescripción
ok obligatorioboolean
problems obligatorioProblem[]
signals obligatorioSignalsTamper signals computed on the client (hints only).
raised_signals obligatoriostring[]
SessionRequest
CampoTipoDescripción
player obligatoriouint64
hello obligatorioHelloFirst client message.
SessionResponse
CampoTipoDescripción
session_id obligatoriostring
challenge obligatorioChallengeServer nonce for the next heartbeat.
HeartbeatRequest
CampoTipoDescripción
heartbeat obligatorioHeartbeatEd25519 signed client report.
HeartbeatResponse
CampoTipoDescripción
report obligatorioHeartbeatReportVerification result.
challenge obligatorioChallengeServer nonce for the next heartbeat.
JurorRequest
CampoTipoDescripción
id obligatoriouint64
weight obligatorionumber
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).

CampoTipoDescripción
player obligatoriouint64
goldboolean | null
exclusionsuint64[]
CaseCreated
CampoTipoDescripción
case_id obligatoriouint64
assigned obligatoriouint64[]
CaseStatus

"open" | "closed"

CaseSummary
CampoTipoDescripción
id obligatoriouint64
suspect obligatoriouint64
opened_ms obligatoriouint64
status obligatorioCaseStatus
votedboolean
CaseList
CampoTipoDescripción
cases obligatorioCaseSummary[]
Decision

"Guilty" | "NotGuilty" | "Inconclusive"

CaseOutcome Weighted jury outcome

Weighted jury outcome.

CampoTipoDescripción
decision obligatorioDecision
cheating_weight obligatorionumber (double)
clean_weight obligatorionumber (double)
unsure obligatoriouint32
votes obligatoriouint32
closed_ms obligatoriouint64
CaseView Case without votes (votes stay hidden while open)

Case without votes (votes stay hidden while open).

CampoTipoDescripción
id obligatoriouint64
suspect obligatoriouint64
opened_ms obligatoriouint64
status obligatorioCaseStatus
outcomeCaseOutcomeWeighted jury outcome.
CaseDetail
CampoTipoDescripción
case obligatorioCaseViewCase without votes (votes stay hidden while open).
evidence obligatorioEvidenceBundleAppeal 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.

CampoTipoDescripción
juroruint64
choice obligatorioVoteChoice
CollusionPair
CampoTipoDescripción
a obligatoriouint64
b obligatoriouint64
shared obligatoriouint32
agreement obligatorionumber (double)
against_majority obligatoriouint32
CollusionResponse
CampoTipoDescripción
pairs obligatorioCollusionPair[]
Health
CampoTipoDescripción
status obligatorio"ok"
version obligatoriostring
matches obligatoriouint64
players obligatoriouint64
AuditEntry
CampoTipoDescripción
at_ms obligatoriouint64
actor obligatoriostring
action obligatoriostring
target obligatoriostring
detail obligatoriostring
AuditResponse
CampoTipoDescripción
entries obligatorioAuditEntry[]
Error Every 4xx and 5xx body

Every 4xx and 5xx body.

CampoTipoDescripción
error obligatorioobject
VerdictData
CampoTipoDescripción
match_id obligatoriostring | null
verdict obligatorioVerdictResult of judging new flags. server_time_ms is the valkyr-server wall clock (Unix ms).
ReviewClosedData
CampoTipoDescripción
case_id obligatoriouint64
suspect obligatoriouint64
outcome obligatorioCaseOutcomeWeighted jury outcome.
DiscordBody Body of format = "discord" webhooks

Body of format = "discord" webhooks.

CampoTipoDescripción
content obligatoriostring
embeds obligatorioobject[]
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.

CampoTipoDescripción
at_ms obligatoriouint64
key_id obligatoriostring
type obligatoriostring
rule obligatoriostring
count obligatoriouint32
detailstring | 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.

CampoTipoDescripción
flags obligatorioFlag[]
signals obligatorioGuardSignalRecord[]
replay_ids obligatoriostring[]
model_scores obligatorioobject
trust obligatorioTrustReportCurrent standing of a player.
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).

CampoTipoDescripción
id obligatoriouint64
player obligatoriouint64
kind obligatorioBanKindshadow: matchmaking with other flagged players only; temporary: until expires_ms; permanent: until revoked.
scope obligatoriostringglobal, game:<id>, server:<id> or league:<id>.
reason obligatoriostring
status obligatorioBanStatus
source obligatorioBanSource
created_by obligatoriostring
created_ms obligatoriouint64
activates_msuint64 | null
started_msuint64 | null
duration_secsuint64 | null
expires_msuint64 | null
wave_iduint64 | null
ended_msuint64 | null
end_reasonstring | null
match_idstring | null
evidenceBanEvidenceSnapshot 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.

CampoTipoDescripción
player obligatoriouint64
kind obligatorioBanKindshadow: matchmaking with other flagged players only; temporary: until expires_ms; permanent: until revoked.
scopestringglobal, game:<id>, server:<id> or league:<id>.
reason obligatoriostring
duration_secsinteger | null
waveboolean
replay_idsstring[]
model_scoresobject
match_idstring | null
BanList
CampoTipoDescripción
bans obligatorioBan[]
AppealFiler

"player" | "operator"

AppealStatus

"open" | "upheld" | "overturned" | "reduced"

AppealDecision

"uphold" | "overturn" | "reduce"

AppealOutcome
CampoTipoDescripción
decision obligatorioAppealDecision
note obligatoriostring
reviewer obligatoriostring
decided_ms obligatoriouint64
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.

CampoTipoDescripción
id obligatoriouint64
ban_id obligatoriouint64
player obligatoriouint64
filed_by obligatorioAppealFiler
statement obligatoriostring
status obligatorioAppealStatus
filed_ms obligatoriouint64
case_iduint64 | null
outcomeAppealOutcome | null
AppealRequest statement is limited to [bans] max_statement_chars

statement is limited to [bans] max_statement_chars.

CampoTipoDescripción
filed_by obligatorioAppealFiler
statement obligatoriostring
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.

CampoTipoDescripción
decision obligatorioAppealDecision
notestring
duration_secsinteger | null
AppealList
CampoTipoDescripción
appeals obligatorioAppeal[]
WarningRequest
CampoTipoDescripción
player obligatoriouint64
reason obligatoriostring
scopestringglobal, game:<id>, server:<id> or league:<id>.
match_idstring | null
Warning
CampoTipoDescripción
id obligatoriouint64
player obligatoriouint64
reason obligatoriostring
scope obligatoriostringglobal, game:<id>, server:<id> or league:<id>.
match_idstring | null
by obligatoriostring
at_ms obligatoriouint64
KickRequest
CampoTipoDescripción
player obligatoriouint64
reason obligatoriostring
match_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.

CampoTipoDescripción
id obligatoriouint64
player obligatoriouint64
reason obligatoriostring
match_idstring | null
by obligatoriostring
at_ms obligatoriouint64
action_id obligatoriouint64
WaveTrigger

"schedule" | "manual"

Wave A ban wave: queued bans activated together

A ban wave: queued bans activated together.

CampoTipoDescripción
id obligatoriouint64
executed_ms obligatoriouint64
trigger obligatorioWaveTrigger
bans obligatoriouint64[]
WavesResponse
CampoTipoDescripción
mode obligatorio"off" | "interval" | "delay"
next_wave_ms obligatoriouint64 | null
queued obligatorioBan[]
history obligatorioWave[]
LinkRequest
CampoTipoDescripción
player obligatoriouint64
kind obligatoriostringToken kind, one of [links] kinds when that list is set (for example device, payment, ip_prefix).
token obligatoriostringRaw token; only a salted SHA-256 hash is stored.
LinkView
CampoTipoDescripción
account obligatoriouint64
shared_kinds obligatoriostring[]
bans_in_effect obligatoriouint64[]
Evasion
CampoTipoDescripción
risk obligatorionumber (double)
linked_banned obligatorioEvasionLink[]
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.

CampoTipoDescripción
player obligatoriouint64
scopes obligatoriostring[]
allowed obligatorioboolean
banned obligatorioboolean
shadow obligatorioboolean
bans obligatorioBan[]
warnings obligatoriouint64
evasion obligatorioEvasion
GuardSignal
CampoTipoDescripción
type obligatoriostringOne 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.
countinteger
detailstring | null
observed_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.

CampoTipoDescripción
version obligatorio1
gamestring | null
session_idstring | null
playeruint64 | null
seq obligatoriouint64
sent_ms obligatoriouint64
signals obligatorioGuardSignal[]
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]].

CampoTipoDescripción
key_id obligatoriostring
payload obligatoriostringGuardPayload as JSON text, signed byte for byte.
signature obligatoriostring64 bytes, hex
GuardResponse
CampoTipoDescripción
player obligatoriouint64
accepted obligatoriouint64
ignored obligatoriostring[]
verdicts obligatorioVerdict[]
GuardSignalData
CampoTipoDescripción
player obligatoriouint64
session_id obligatoriostring | null
seq obligatoriouint64
signals obligatorioGuardSignalRecord[]
verdict obligatorioVerdict | null
WebhookEnvelope Body of every json format webhook

Body of every json format webhook.

CampoTipoDescripción
id obligatoriostring
type obligatorio"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 obligatoriouint64
data obligatorioActionItem | Appeal | Ban | GuardSignalData | Kick | ReviewClosedData | VerdictData | Warning | Wave

Generado a partir de docs/openapi.json al compilar el sitio.

Editar esta página en GitHub