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
Headers
None available
Route params
Key | Required | Description |
---|---|---|
id | ✅ Yes | The ID of the player |
Query keys
None available
Sample response
{ ... }
Update a player's online status and custom status
PUT https://api.trytalo.com/v1/players/presence
Sample request
{ ... }
Sample response
{ ... }