Trigger rewards
documentedEvaluate a custom event and create necessary rewards.
POST /api/v2/betas/{beta_id}/rewards/trigger.jsonBetasno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl 'https://api.prefinery.com/api/v2/betas/{{$beta_id}}/rewards/trigger.json' \
-X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-u {{PREFINERY_API_KEY}}: \
-d '{"email": "{{$email}}", "event": "{{$event}}"}'