Event API
Event tracking lets you get rid of the guess-work. By tracking important actions when they happen, you're able to gauge how well a mechanic is being used and even track the overall progress of your players. See how often potions get used, items get bought and how many level-ups there are per day, month or year.
Learn more about events here.
Endpoints
Track events
POST https://api.trytalo.com/v1/events
Headers
Key | Required | Description |
---|---|---|
x-talo-alias | ✅ Yes | The ID of the player's alias |
Body keys
Key | Required | Description |
---|---|---|
events | ✅ Yes | An array of EventData |
Sample request
{ ... }
Sample response
{ ... }
Types
EventData
type EventData = {
name: string // name of the event
timestamp: number // UNIX milisecond timestamp, e.g. 1656971058297
props?: Prop[]
}
type Prop = {
key: string
value: string
}