Webhooks
Power custom workflows using Trophy data
Subscribe to key engagement events like achievement.completed, leaderboard.finished, and streak.lost. Receive HTTP POST payloads from Trophy and trigger custom code in your application.
Quickstart
Quickstart: verify and handle a webhook
Create a webhook in the Trophy dashboard, point it at your endpoint, and verify the X-Trophy-Signature header on every request before handling the event.
import crypto from "crypto";
import { NextRequest, NextResponse } from "next/server";
export async function POST(request: NextRequest) {
const signature = request.headers.get("X-Trophy-Signature");
const body = await request.text();
const hash = crypto
.createHmac("sha256", process.env.TROPHY_WEBHOOK_SECRET!)
.update(body)
.digest("base64");
if (hash !== signature) {
return NextResponse.json({ message: "Rejected" }, { status: 403 });
}
const payload = JSON.parse(body);
switch (payload.type) {
case "achievement.completed":
// Handle achievement completed
break;
case "streak.lost":
// Handle streak lost
break;
case "leaderboard.finished":
// Handle leaderboard finished
break;
case "reward.redeemed":
// Fulfill a custom reward
break;
default:
break;
}
return NextResponse.json({ message: "Received" }, { status: 200 });
}Use case
Extend Trophy into the rest of your stack
React to Trophy events in real time to build custom integrations, automate workflows, and extend in-app experiences across your stack.
- Custom notifications
- Trigger custom email and push notification sequences when users complete milestones, extend streaks, or move up leaderboards.
- Data warehousing
- Stream Trophy events into your data warehouse to analyze engagement activity alongside the rest of your product data.
- Extended workflows
- Power product workflows like subscription updates, feature unlocks, and third-party integrations from Trophy events.

Reliability
Production-ready webhook delivery
Build secure, resilient webhook handlers with signature verification, automatic retries, and delivery monitoring built in.
- Secure payloads
- Every event includes a security token so you can verify payloads originated from Trophy and reject malicious requests.
- Automatic retries
- Trophy retries failed deliveries when your endpoint returns a non-2XX status code, so transient failures do not mean missed events.
- Delivery observability
- Monitor webhook delivery from the Trophy dashboard to diagnose issues and confirm events are reaching your endpoints.

Events
Subscribe to the events that matter
Configure webhooks in the Trophy dashboard to receive only the event types you need. Each payload includes the event type so your handler can process multiple events from a single endpoint.
Milestones
Built for production workloads
Reliable infrastructure designed for performance at scale.
- Uptime SLA
- 99.9%
- p95 API Latency
- 200ms
- Monthly API Requests
- 180M
- Users Tracked
- 1M+
Customers
Loved by consumer app teams
Learn why growing product teams are increasing engagement with Trophy.
How do I add in-app engagement features to my app without building event pipelines from scratch?
Trophy ships milestones, streaks, points, and leaderboards out of the box — then pushes real-time events to your stack with webhooks. Point an endpoint at your backend, choose the events you care about, and trigger custom logic the moment users hit milestones. Most teams are live in under a week instead of spending months on in-house infrastructure.
Can I trigger custom emails or push notifications when users earn milestones or lose streaks?
Yes. Subscribe to events like achievement.completed, streak.lost, and points.level_changed to fire lifecycle emails, push notifications, or in-app messages from your own systems. Trophy handles the feature logic and event delivery; you keep full control of copy, channels, and timing — without bolting polling or cron jobs onto your product.
How do I sync engagement data to my data warehouse or analytics tools?
Stream Trophy webhook events into Snowflake, BigQuery, Redshift, Mixpanel, Amplitude, or any HTTP-friendly destination. Every payload carries structured engagement activity — completions, rank changes, point awards, streak breaks — so product and growth teams can analyze retention alongside the rest of your product data, not in a silo.
Can I connect Trophy to billing, feature flags, or third-party automation?
Webhooks are built for it. Teams use Trophy events to unlock paid features after milestones, fulfill custom rewards like discount codes when users redeem them, update CRM records when users top a leaderboard, or route activity into Zapier, Make, and internal workflow engines. If your stack accepts HTTP POST requests, you can wire Trophy events into subscription, entitlement, and ops workflows without custom Trophy-specific adapters.
Does Trophy support webhooks for leaderboards, points, rewards, and streak events?
Trophy webhooks cover every in-app feature: milestones, streaks (including freezes), points and levels, leaderboard lifecycle events, and reward awards and redemptions. Pick only the event types each endpoint needs from the dashboard. Webhooks are included on every Trophy plan (see pricing) — built for production apps that need reliable, signed event delivery at scale.
How fast can I add Trophy webhooks to a Next.js, React, or Node.js app?
Fast. Create a webhook in the Trophy dashboard, implement a POST handler (Next.js App Router, Express, or any framework), and verify the Trophy signature on incoming requests. Use a local proxy for development, then ship the same handler to production. Follow the quick start to receive your first milestone, streak, or leaderboard event in under 10 minutes.



