Ingest markers
Ingests a batch of analytics markers (events) from the SDK. Each marker is platform-validated; invalid markers are returned in rejectedMarkers while valid ones are ingested into our pipeline. Billable markers (everything except platform-specific free types) count against the org's subscription usage and the request is rolled back if publishing fails. Returns counts of ingested, rejected, and stale markers.
Authorization
sdkApiKey SDK (public) key, prefixed gb_pk_ (older keys: sdk_). Send it as the authorization header value. Scoped to one project, so it is safe to ship in a game build.
In: header
Header Parameters
true0 < value <= 9007199254740991length <= 100Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/sdk/v1/markers/" \ -H "Content-Type: application/json" \ -d '{ "markers": [ { "type": "RoundEnded", "timestamp": 1790000000, "userId": "69935436", "value": { "Score": 600, "Map": "Office", "Duration": 120 } } ] }'{ "message": "string", "rejectedMarkersCount": 0, "ingestedMarkersCount": 0, "rejectedMarkers": [ { "marker": null, "reason": "string" } ], "staleMarkersCount": 0}