Player API
Endpoints
Identify a player
GET https://api.trytalo.com/v1/players/identify
Query keys
Key | Required | Description |
---|---|---|
identifier | ✅ Yes | The unique identifier of the player. This can be their username, an email or a numeric ID |
service | ✅ Yes | The name of the service where the identity of the player comes from (e.g. "steam", "epic" or "username") |
Sample response
{ ... }
Merge two players
POST https://api.trytalo.com/v1/players/merge
Body keys
Key | Required | Description |
---|---|---|
playerId1 | ✅ Yes | The first player ID - the second player will be merged into this player |
playerId2 | ✅ Yes | The second player ID |
Sample request
{ ... }
Sample response
{ ... }
Update a player's props
PATCH https://api.trytalo.com/v1/players/:id
Route params
Key | Required | Description |
---|---|---|
id | ✅ Yes |
Body keys
Key | Required | Description |
---|---|---|
props | ❌ No | An array of Props. Props that the player doesn't have will be added. Props with updated values will overwrite existing props. Props with a null value will be deleted from the player |
Sample request
{ ... }
Sample response
{ ... }
Types
Prop
Prop {
key: string,
value: string | null
}