Saltar al contenido principal
GET
/
users
/
{id}
/
points
/
{key}
/
boosts
JavaScript
import { TrophyApiClient } from '@trophyso/node';

const trophy = new TrophyApiClient({
  apiKey: 'YOUR_API_KEY'
});

const response = await trophy.users.pointsBoosts("user-id", "points-system-key");
[
  {
    "id": "0040fe51-6bce-4b44-b0ad-bddc4e123534",
    "name": "Double XP Weekend",
    "status": "active",
    "start": "2025-01-01",
    "end": "2025-01-03",
    "multiplier": 2,
    "rounding": "down"
  },
  {
    "id": "0040fe51-6bce-4b44-b0ad-bddc4e123535",
    "name": "VIP Bonus",
    "status": "active",
    "start": "2025-01-01",
    "end": null,
    "multiplier": 1.5,
    "rounding": "nearest"
  }
]
Límites de Velocidad

Autorizaciones

X-API-KEY
string
header
requerido

Parámetros de ruta

id
string
requerido

ID of the user.

key
string
requerido

Key of the points system.

Respuesta

Successful operation

id
string
requerido

The ID of the points boost

name
string
requerido

The name of the points boost

status
enum<string>
requerido

The status of the points boost

Opciones disponibles:
active,
scheduled,
finished
start
string
requerido

The start date of the points boost

end
string | null
requerido

The end date of the points boost

multiplier
number
requerido

The multiplier of the points boost

rounding
enum<string>
requerido

The rounding method of the points boost

Opciones disponibles:
down,
up,
nearest