Skip to main content

Player presence API

The player presence API allows you to automatically track the presence of players in your game. This can be useful for a variety of use cases, such as showing a player as online or offline, setting custom statuses and friends lists.

Endpoints


Get a player's online status and custom status

GET https://api.trytalo.com/v1/players/presence/:id

Route params

KeyRequiredDescription
id YesThe ID of the player

Sample response

{ ... }

Update a player's online status and custom status

PUT https://api.trytalo.com/v1/players/presence

Headers

KeyRequiredDescription
x-talo-alias YesThe ID of the player's alias

Body keys

KeyRequiredDescription
customStatus NoA custom status message for the player
online NoWhether the player is online

Sample request

{ ... }

Sample response

{ ... }