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

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

Headers

None available

Route params

KeyRequiredDescription
id YesThe ID of the player

Query keys

None available

Sample response

{ ... }

Update a player's online status and custom status

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

Headers

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

Route params

None available

Query keys

None available

Body keys

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

Sample request

{ ... }

Sample response

{ ... }