GamebeastDocs
Dashboard

Sources

Turn events from any tool that can send a webhook into markers: a store, a Discord bot or your own backend. Map the fields once and every request becomes a marker.

A source is a webhook URL that turns another tool's events into markers. A store's purchase webhook, a Discord bot or your own backend posts JSON to the URL, and each request becomes one marker next to the ones your game sends. Chart them, filter on them and send them on with sinks like any other marker.

Each source sends one marker type, in the environment it was created in.

Creating a source

Open Data > Markers and choose New source under Sources. The sheet has three steps:

  1. Name it and pick the marker it sends. Use a marker name your game already sends to add to that marker, or a new one.
  2. Send events to this URL. Choose Get the URL. The sheet shows the source's webhook URL and a curl to send a first event.
  3. Map its fields to the marker. When the first request arrives, the sheet shows its body. Pick which fields become the marker's player, session, time and arguments, then Save mapping.

From then on, every request to the URL sends a marker.

The URL is the credential: anyone with it can send markers to your project. Keep it in a secret store, not in a public repository or a game client. If it leaks, delete the source and create a new one; there is no way to change a source's URL.

Sending events

Send a POST with a JSON object as the body:

curl -X POST "https://api.gamebeast.gg/ingest/v1/webhooks/YOUR_SOURCE_ID" \
  -H "content-type: application/json" \
  -d '{"user_id":"88123401","item":"starter_pack","price":4.99}'

Copy the exact URL from the source; it ends in the source's 32-character id. The request needs no API key or signature. Any JSON object works, so most tools' webhooks can point straight at it.

AnswerMeaning
200 {"status":"ok"}A marker was sent
200 {"status":"captured"}No field is mapped yet, so the body was kept as the source's sample and no marker was sent
200 {"status":"disabled"}The source is off: the body was kept as its sample and no marker was sent
400The body isn't a JSON object, or the URL's id is malformed
404No source has this URL: it was deleted, or the URL is wrong
502Gamebeast couldn't accept the marker. Send the request again

Each request makes one marker. Sending the same request twice makes two.

Mapping fields

A mapping reads a field of the request body and writes it to the marker:

Marker fieldFrom the body
User IDAny field, sent as text. Map it so each marker counts toward a player; without it the marker has no player
Session IDAny field, sent as text. Optional
TimestampAn ISO 8601 date, or epoch milliseconds. Unmapped, or a value that isn't a date: the time it arrived
ArgumentsAny fields, each under a name you choose

Fields are picked from the sample body. Nested fields and array items work: customer.id, or items.0.sku for the first item's sku. A field missing from a request leaves that part of the marker empty; the marker is still sent.

Argument names use letters, numbers and underscores. A dot nests: item.name and item.price make an item argument with two fields. Values keep their JSON type, so a number stays a number for sums and averages. Add every field maps each field in the sample as an argument at once.

The sheet previews the marker the sample would make before you save. A change to the mapping applies to the next request.

Sources' states

StateMeaning
Waiting for the first eventNothing has arrived yet
Sample received, not mappedA request arrived and is kept as the sample; nothing is sent
Sending markersAt least one field is mapped: every request sends a marker
OffSwitched off on the list: requests are kept as samples, not sent

A source that sends markers stops updating its sample. To capture a new sample, for example after the other tool changed its payload, switch the source off, send one request, then remap and switch it back on.

Deleting a source stops its URL at once (requests get a 404). Markers it already sent stay.

In sinks

Markers from a source have webhook as their platform. A sink's template reads it as marker.platform, and its arguments as marker.args.

Who can do what

PermissionAllowsBuilt-in roles
Project accessSeeing sources and their URLsViewer and above
markers:writeCreating, mapping, switching on and off, and deletingEditor and above

Sources are managed in the dashboard only; there is no API for creating or editing them.

On this page