curl -X POST https://rolearn.dev/api/alerts \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"game_id": 2753915549, "type": "ccu_spike", "threshold": 500000}'
{
"id": 42,
"game_id": 2753915549,
"type": "ccu_spike",
"threshold": 500000,
"created_at": "2026-03-13T03:00:00Z"
}
Tracking & Alerts
Create Alert
Create a new alert for game events
POST
/
api
/
alerts
curl -X POST https://rolearn.dev/api/alerts \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"game_id": 2753915549, "type": "ccu_spike", "threshold": 500000}'
{
"id": 42,
"game_id": 2753915549,
"type": "ccu_spike",
"threshold": 500000,
"created_at": "2026-03-13T03:00:00Z"
}
integer
required
Universe ID of the game to monitor
string
required
Alert type (e.g.,
ccu_spike, trend_change, competitor)number
Threshold value for triggering the alert
curl -X POST https://rolearn.dev/api/alerts \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"game_id": 2753915549, "type": "ccu_spike", "threshold": 500000}'
{
"id": 42,
"game_id": 2753915549,
"type": "ccu_spike",
"threshold": 500000,
"created_at": "2026-03-13T03:00:00Z"
}

