Skip to main content
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"
}
game_id
integer
required
Universe ID of the game to monitor
type
string
required
Alert type (e.g., ccu_spike, trend_change, competitor)
threshold
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"
}