Developer API

Add Autoclipping to your game

One HTTP request per event. Medal handles the recording, editor, and share links. Content creators get more gameplay to work with, and every casual player becomes a marketer when they share clips with friends.

How it works

No SDK. No plugin. Define your events, fire an HTTP request when they happen, and Medal captures the highlight on the player's machine.

You define the events

Pick the moments your players care about (kills, wins, combos, rare drops) and decide how long each clip runs and how long to wait before saving.

Your game fires an HTTP request

When an event happens, send a POST to Medal’s local API on the player’s machine. Any language, any engine. No SDK to integrate, no plugin to ship.

Medal saves the clip

Medal grabs the configured duration of replay, names the clip with your event name, and drops it into the player’s library, ready to edit, share, or post.

Build your integration

Walk through the steps below. By the end you'll have a public key, a list of clip-worthy events, and a copy-paste curl request for each one.

1

Tell us who you are

Enter your Medal username so we know who's requesting access. This is the account that'll receive the test build.

Don't have one? Create an account

2

Tell us about your game

Pick your game from Medal's supported list, then name the app you're building. Medal uses this to attribute clips back to your game.

Don't see your game? Request your game be added

3

Generate a public key

This is the identifier Medal uses to recognize your events. Send it on every request as the publicKey header.

Pick a game and fill out App name and App URL in Step 2 to enable.

4

Define your events

Each event gets an auto-assigned ID (1, 2, 3…). Add the events most worth clipping in your game. Players will toggle individual events on or off inside Medal's settings, so it pays to define more than you think you need.

IDEvent nameDuration (s)Delay (s)Default on
1
2
3
4
5

Submit for a test build

Send us your username, key, and event list. The Medal recorder team will build you a custom version of the app wired up to your events, and we'll share your sample requests below so you can test end-to-end as soon as it's ready.

API reference

Single endpoint. JSON body. Runs on the player's machine, so latency is effectively zero.

Endpoint

POSThttp://localhost:12665/api/v1/event/invoke

The request runs on the player's own machine. Medal listens on the local loopback. Send the request from your game client, server-side relay, or anti-cheat hook, whichever fits your stack.

Headers

  • Content-Type: application/json; charset=utf-8
  • publicKey: the key you generated above

Body parameters

FieldTypeRequiredDescription
eventIdstringYesThe numeric ID you assigned to this event (e.g. "1"). Lets players toggle individual events on or off inside Medal.
eventNamestringYesDisplay name used to label the clip card in Medal (e.g. "Triple Kill").
triggerActionsstring[]YesActions Medal should perform. Use ["SaveClip"] to record and save a highlight.
clipOptions.durationnumberYesLength of the saved clip in seconds. Typical range is 15–60.
clipOptions.captureDelayMsnumberNoMilliseconds Medal waits after the request before snapshotting the replay buffer. Useful for catching killcams or post-action moments.

Response

200 OK when Medal accepted the event. The clip itself is processed asynchronously and shows up in the player's library after the configured duration elapses.

401 Unauthorized means the publicKey header is missing or unrecognized. 400 Bad Request means a required field is missing or malformed.

What you get on the player side

Once your build ships, here's what Medal handles for your players automatically.

Instant clip capture

Medal saves the configured replay window the moment your event fires, with the eventName as the clip title.

Per-event toggles

Players control which of your events get clipped via Settings → Auto Clipping. They never lose a key moment, and they don’t get spammed by ones they don’t care about.

Built-in share + edit

Clips open in Medal’s editor for quick trims, then share to Discord, TikTok, Reddit, or anywhere with a single link.

FAQ

Ship auto-clipping to your players

Start with the event builder above. When you're ready, submit your config and the Medal recorder team will wire it into a custom test build for you.

Open the builder