Skip to main content

Webhook-driven daily rewards

What's new

Daily reward programs now accept an optional webhook_id. When set, Aghanim asks your backend which items to grant for each reward day instead of using the items configured statically on the program. The shared WebhookEventType enum gained a matching daily_reward.get value.

Impact

Daily rewards can be personalized per player and changed without editing the program. Programs without a webhook_id keep behaving exactly as before, and a webhook-driven program silently falls back to its static items if your endpoint fails or times out.

Changes

ResourceChange
create_daily_reward, update_daily_rewardAdded optional webhook_id to the request body
get_daily_reward, get_daily_rewards, copy_daily_rewardAdded webhook_id to the daily reward read model
ComponentsAdded daily_reward.get to WebhookEventType

Upgrade

  • No action required. Existing programs are unaffected.
  • To make a program webhook-driven, set webhook_id to a webhook subscribed to daily_reward.get and implement the daily reward webhook on your server.

Need help?
Contact our integration team at integration@aghanim.com