Application API
Safe actions an end-user can take. API Keys can be scoped to a single user, so they’re safe to ship in a client app.
api.trophy.soDevelopers
Use type-safe SDKs to start sending in-app events to Trophy in under an hour. Connect to internal and third-party tools with webooks with isolated staging and production environments built into every Trophy account.
await trophy.metrics.event("lessons-completed", {user: {id: "cus_8F2K",tz: "Europe/Lisbon",// streaks roll over at their midnight},value: 1,idempotencyKey: "lesson-123",// a retry counts once});01 · APIs and SDKs
Everything you need to get from first event to production without surprises. Every endpoint is public and documented, and both APIs publish their full OpenAPI reference.
Browse the API referenceSafe actions an end-user can take. API Keys can be scoped to a single user, so they’re safe to ship in a client app.
api.trophy.soConfiguration and account operations for your backend jobs and internal tools.
admin.trophy.soNode, Python, Ruby, Go, Java, .NET and PHP. Type-safe, with built-in authentication and retry logic.
npm install @trophyso/nodeSend an idempotency key with a request using any SDK and a retried request never counts twice.
Idempotency-Key: lesson-123Production, plus staging and development environments of your own, each with its own isolated data.
production · staging · developmentThe full reference for each API is public, for your own clients, mocks and code generation.
api.trophy.so/v1/openapi02 · Webhooks
Subscribe to any of 20 event types, delivered as signed HTTP POST requests. Hook them into your own jobs, analytics or third-party tools.
X-Trophy-Signature: k3Rw9vQ2hT…bX8=Content-Type: application/json{"type": "reward.awarded","timestamp": "2026-11-06T08:10:00Z","user": {"id": "cus_31QX","tz": "Europe/London"},"reward": {"key": "free-month","name": "A free month of Pro","type": "custom"},"redemption": {"redeemed": false,"trigger": {"type": "streak","streakLengthThreshold": 30}}}Every request carries an HMAC SHA-256 of its body in X-Trophy-Signature, made with a secret unique to that webhook.
Timeouts after 60 seconds, network errors and non-2XX responses are retried up to 3 times, backing off from 1 minute.
The status and payload of every delivery stay in the dashboard for 7 days, so you can check what was sent and whether it arrived.
const signature = request.headers.get("X-Trophy-Signature");const hash = crypto.createHmac("sha256", process.env.TROPHY_WEBHOOK_SECRET).update(await request.text()).digest("base64");if (hash !== signature) return new Response(null, { status: 401 });03 · Environments
Trophy tracks configuration across environments the way git tracks code. Make a change in development, review it in staging, and copy it to production when it’s ready, with each environment keeping its own data.
Start a new environment as an exact copy of production, data and settings included, so there’s no test data to set up by hand.
Trophy tracks every change in each environment and shows the difference against any other.
Promote all your changes to the next environment at once, or revert the ones you don’t want.
04 · Security
Trophy is secure by design, with independent SOC 2 Type II and ISO 27001 audits in progress.
Application keys act for one user and are safe in client-side code. Admin keys stay on your servers.
HMAC SHA-256, with a secret for each webhook you set up.
A record of activity in your organization: 7 days on Pro, 30 on Business, custom on Enterprise.
Choose where your data lives, on terms your legal team has agreed.
Shared with Enterprise customers for your vendor review.
05 · MCP
Trophy runs two remote MCP servers. Add them to Claude Code, Cursor, VS Code and more, and your agent reads the live docs, configures your account, and writes the integration with you.
Searches the live guides and API reference, so answers match today’s docs. Read-only.
Reads and updates your configuration in the environment you choose. Secured with OAuth.
$ claude mcp add --transport http "Trophy Docs" \https://docs.trophy.so/mcp$ claude mcp add --transport http "Trophy Account" \https://mcp.trophy.so/mcpUsing Trophy Docs MCP, review how metrics and event tracking work. Using Trophy Account MCP, list my existing metrics. Create a lessons completed metric if one doesn’t exist, then add event tracking to my code based on the docs.
We retry event calls when they time out. Could that count a lesson twice?
Not if you send an idempotency key. Use the lesson ID and Trophy counts it once, however many times you retry. The SDKs take it as idempotencyKey.
That’s what we needed. Shipping it.
06 · Support
Questions go straight to the engineers who build Trophy, not a ticket queue, so a blocker doesn’t slow your launch. From your first event to production.
Shared between your engineers and ours.
For your first 30 days on Pro, and for as long as you need it on Business.
[email protected] for anything that isn’t urgent.
07 · Start here
Questions
The questions we hear most from engineering teams before they sign up.
Integration
Usually less than an hour. Most of the work is sending events you already track, which is one API call each. Campfire set up a weekly writing habit for 1M authors in about an hour. If you use a coding agent, connect our MCP servers and it can set up your account and write the calls for you.
Yes. Application API keys only work for the one user they were created for, so you can ship them in a web or mobile app. Admin keys can change your whole account, so keep those on your servers.
If you send an idempotency key, Trophy only counts the event once, no matter how many times you retry. Use something that identifies the action, like the ID of the lesson the user finished.
Create a staging or development environment. Each one has its own data, and you can clone production to start with real settings. The Account MCP server works with whichever environment you tell it to.
Test in staging first. Then turn agents on for a small group of users in production and compare them with a holdout group that agents never contact. Once the numbers look good, roll out to more users.
Architecture
You send events, show each user’s progress in your app, and can listen for webhooks if you want them. Trophy handles the rest, including streaks, points, milestones, time zones, the lifecycle agents and sending email and push. You don’t need to build a rules engine, templates or a scheduler.
Your app fetches each user’s data from the Application API and renders it with your own components. Trophy stores the data and runs the logic, and the UI stays entirely yours.
No. Trophy can send email from your own domain and push through Firebase Cloud Messaging, APNs or Expo. If you’d rather keep your current provider, Trophy can send each message to your endpoint as a webhook and you send it from there.
Webhooks
Trophy tries again up to 3 times, waiting a minute before the first retry and longer after each one. You can see every attempt and its payload in the dashboard for 7 days.
Yes, occasionally. Like most webhook providers, Trophy guarantees at-least-once delivery, so keep track of the events you’ve already handled and ignore duplicates.
Your data
Yes. On Business, Trophy copies your data into your own Postgres database, starting with everything you have and then updating every hour. You can also use webhooks to get events as they happen.
By default, your data is stored in London. On Enterprise, you can choose a different region and sign a custom DPA. We also share our SOC 2 and ISO reports with Enterprise customers. The Trust Center has more on how we protect your data.