Heartbeat

Actualizar la ultima actividad de un cliente.

POST/api/v1/clients/heartbeat

Actualiza el campo lastSeenAt del cliente. Util para trackear actividad.

Request body

ParametroTipoDescripcion

Ejemplo

curl -X POST https://southgames.ai/api/v1/clients/heartbeat \
  -H "Authorization: Bearer sg_live_xxx" \
  -H "X-Org-Id: mi-empresa" \
  -H "Content-Type: application/json" \
  -d '{"clientId": "abc123def456"}'

Respuesta

{
  "success": true,
  "sessionCount": 12,
  "xpAwarded": 50,
  "newTotalXp": 1250,
  "tierUp": {
    "previousTier": "Plata",
    "newTier": "Oro",
    "newTierColor": "#FFD700"
  }
}