v1

latestOpenAPI 3.1.02026-07-2414059.5 KB

/events

post/events

Request body

typestring required

A name for this type of event. More details here

user_idstring required

A unique identifier for this user. More details here

revenue_currencystring

Currency revenue is being reported in

revenue_amountnumber float

Amount of revenue being reported. You must pass a revenue_currency together with this field. Can be provided as an Integer, Float or String.

timestampstring date-time

Explicitly set the timestamp for the event (optional - 2020-01-01T00:00:00)

transaction_idstring

Unique transaction ID that is used for deduplicating events, commonly used to ensure idempotency with purchase events. Gamesight enforces that only 1 event will be processed per transaction_id.

gameplay_session_idstring

A unique session ID for the user's current game session. Passing this field enables Gamesight to report on session counts, playtime, and actions within a session.

metadatastring json

Arbitrary metadata to attach to the event. Must be less than 1KB when JSON encoded.

Response

201

Example response

{
  "event": {
    "created_at": "2120-01-02T13:34:56",
    "identifiers": "7efa773c803a0..2fbf9a22",
    "type": "game_launch",
    "user_id": "b91f8k5r"
  }
}
All 14 operations