Developers

Live in under an hour.
Not next quarter.

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.

Official SDKs

01 · APIs and SDKs

Typed SDKs, open APIs, safe defaults.

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 reference

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.so

Admin API

Configuration and account operations for your backend jobs and internal tools.

admin.trophy.so

SDKs in seven languages

Node, Python, Ruby, Go, Java, .NET and PHP. Type-safe, with built-in authentication and retry logic.

npm install @trophyso/node

Idempotent events

Send an idempotency key with a request using any SDK and a retried request never counts twice.

Idempotency-Key: lesson-123

Environments

Production, plus staging and development environments of your own, each with its own isolated data.

production · staging · development

Public OpenAPI specs

The full reference for each API is public, for your own clients, mocks and code generation.

api.trophy.so/v1/openapi

APIs by feature

02 · Webhooks

React to changes that occur within Trophy.

Subscribe to any of 20 event types, delivered as signed HTTP POST requests. Hook them into your own jobs, analytics or third-party tools.

streak.lostreward.awardedemails.reactivation_dueemails.recap_dueemails.streak_reminder_due+15 more
POST /webhooks/trophy
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}}}
200 · Your billing service applies the free month
  • Signed

    Every request carries an HMAC SHA-256 of its body in X-Trophy-Signature, made with a secret unique to that webhook.

  • Retried

    Timeouts after 60 seconds, network errors and non-2XX responses are retried up to 3 times, backing off from 1 minute.

  • Logged

    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.

Verify a request · Node4XX if it doesn’t match
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

Test every change before your users see it.

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.

  • Clone in one click

    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.

  • See exactly what changed

    Trophy tracks every change in each environment and shows the difference against any other.

  • Copy when it’s ready

    Promote all your changes to the next environment at once, or revert the ones you don’t want.

Read about environments
  1. Development
  2. Staging
  3. Production
View changesstaging → production
  • Milestone · 30-day streakNew
  • Points trigger · lesson completed · 10 → 15 XPChanged
  • Streak · freezes 1 → 2Changed
  • Leaderboard · weekly-xpNew
Copy all changes → productionRevert any change on its own
  • DevelopmentUp to 10
  • StagingUp to 4
  • ProductionExactly 1

04 · Security

Security you can trust

Trophy is secure by design, with independent SOC 2 Type II and ISO 27001 audits in progress.

99.9%Uptime SLA · Pro and Business
CustomUptime SLA · Enterprise
Trust CenterHow Trophy protects your data, sub-processors and more.trust.trophy.so
  • User-scoped API keys

    Application keys act for one user and are safe in client-side code. Admin keys stay on your servers.

  • Signed webhooks

    HMAC SHA-256, with a secret for each webhook you set up.

  • Audit logs

    A record of activity in your organization: 7 days on Pro, 30 on Business, custom on Enterprise.

  • Data residency and a custom DPA

    Choose where your data lives, on terms your legal team has agreed.

    Enterprise
  • SOC 2 and ISO reports

    Shared with Enterprise customers for your vendor review.

    Enterprise

05 · MCP

Let your coding agent do the integration.

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.

Trophy Docs

docs.trophy.so/mcp

Searches the live guides and API reference, so answers match today’s docs. Read-only.

Trophy Account

mcp.trophy.so/mcp

Reads and updates your configuration in the environment you choose. Secured with OAuth.

Set up the MCP servers
Claude Code
$ claude mcp add --transport http "Trophy Docs" \https://docs.trophy.so/mcp$ claude mcp add --transport http "Trophy Account" \https://mcp.trophy.so/mcp
Prompt

Using 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.

  1. 01LearnThe Docs server fetches up-to-date information on Trophy functionality.
  2. 02ReadThe Account server lists current Trophy configuration.
  3. 03WriteIt creates or updates only what the task needs.
  4. 04ShipYour agent writes the API calls from the docs.
# trophy-yourco
AnaBackend16:42

We retry event calls when they time out. Could that count a lesson twice?

JasonTrophy16:47

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.

Idempotency-Key: lesson-123Same key, same user: counted onceAPI reference › Idempotency
AnaBackend16:49

That’s what we needed. Shipping it.

06 · Support

The people who build Trophy, in your Slack.

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.

  • A dedicated Slack channel

    Shared between your engineers and ours.

    Business
  • Integration guidance

    For your first 30 days on Pro, and for as long as you need it on Business.

  • Email

    [email protected] for anything that isn’t urgent.

07 · Start here

Send your first event in under an hour.

Questions

What technical leads ask us

The questions we hear most from engineering teams before they sign up.

Not answered here?Ask the team

Integration

How long does an integration take?

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.

Can we call Trophy straight from our app?

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.

What happens if we retry a request?

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.

How do we test without touching production?

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.

How do we roll out safely?

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

What do we build, and what does Trophy run?

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.

How do in-app experiences reach our UI?

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.

Do messages have to go through Trophy?

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

What if our endpoint is down?

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.

Can the same event arrive twice?

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

Can we get our data back out?

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.

Where is our data stored?

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.