trophy.admin namespace.
For example in NodeJs you can use the following code to create a points boost through the admin namespace:
Admin API Usage
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use Trophy’s type-safe SDKs to integrate with the API.
trophy.admin namespace.
For example in NodeJs you can use the following code to create a points boost through the admin namespace:
import { TrophyApiClient } from '@trophyso/node';
const trophy = new TrophyApiClient({
apiKey: 'YOUR_API_KEY'
});
const response = await trophy.admin.points.boosts.create({
systemKey: 'xp',
boosts: [
{
userId: 'user-123',
name: 'Double XP Weekend',
start: '2024-01-01',
end: '2024-01-03',
multiplier: 2
}
]
});
Was this page helpful?