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:playerPresenceGET https://api.trytalo.com/v1/players/presence/:idHeaders
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
write:playerPresencePUT https://api.trytalo.com/v1/players/presenceHeaders
| Key | Required | Description |
|---|---|---|
x-talo-alias | ✅ Yes | The ID of the player's alias |
Route params
None available
Query keys
None available
Body keys
| Key | Required | Description |
|---|---|---|
customStatus | ❌ No | A custom status message for the player |
online | ❌ No | Whether the player is online |
Sample request
{ ... }
Sample response
{ ... }