Skip to main content

Game channel API

Channels are a way to send messages between players in your game. You can use channels to create chat rooms, send notifications or create any other kind of messaging system you can think of.

Learn more about channels here.

Endpoints


List game channels

read:gameChannels
GET https://api.trytalo.com/v1/game-channels

Headers

None available

Route params

None available

Query keys

KeyRequiredDescription
page NoThe current pagination index (starting at 0)

Sample response

{ ... }

Sample request with prop key filtering

{ ... }

Sample request with prop key and value filtering

{ ... }

List game channels that the player is subscribed to

read:gameChannels
GET https://api.trytalo.com/v1/game-channels/subscriptions

Headers

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

Route params

None available

Query keys

KeyRequiredDescription
propKey NoOnly return channels with this prop key
propValue NoOnly return channels with a matching prop key and value

Sample response

{ ... }

Sample request with prop key filtering

{ ... }

Sample request with prop key and value filtering

{ ... }

Find a game channel

read:gameChannels
GET https://api.trytalo.com/v1/game-channels/:id

Headers

None available

Route params

KeyRequiredDescription
id YesThe ID of the channel

Query keys

KeyRequiredDescription
propKey NoOnly return channels with this prop key
propValue NoOnly return channels with a matching prop key and value

Sample response

{ ... }

Get the members of a game channel

read:gameChannels
GET https://api.trytalo.com/v1/game-channels/:id/members

Headers

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

Route params

KeyRequiredDescription
id YesThe ID of the channel

Query keys

KeyRequiredDescription
aliasId NoFind a member with this player alias ID
identifier NoFind a member with this identifier
page NoThe current pagination index (starting at 0)
playerGroupId NoFilter members by players in this group
playerId NoFilter members by this player ID
playerPropKey NoFilter members by players with this prop key
playerPropValue NoFilter members by players with matching prop keys and values

Sample response

{ ... }

Get a single storage property from a game channel

read:gameChannels
GET https://api.trytalo.com/v1/game-channels/:id/storage

Headers

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

Route params

KeyRequiredDescription
id YesThe ID of the channel

Query keys

KeyRequiredDescription
propKey YesThe key of the storage property to retrieve

Sample response

{ ... }

Sample response when property does not exist

{ ... }

Get multiple storage properties from a game channel

read:gameChannels
GET https://api.trytalo.com/v1/game-channels/:id/storage/list

Headers

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

Route params

KeyRequiredDescription
id YesThe ID of the channel

Query keys

KeyRequiredDescription
propKeys YesAn array of storage property keys to retrieve (maximum 50 keys)

Sample request

{ ... }

Sample response

{ ... }

Create a game channel

write:gameChannels
POST https://api.trytalo.com/v1/game-channels

Headers

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

Route params

None available

Query keys

None available

Body keys

KeyRequiredDescription
autoCleanup NoWhether the channel should be automatically deleted when the owner leaves or the channel is empty (default is false)
name YesThe name of the channel
private NoPrivate channels require invites to join them (default is false)
props NoAn array of Props

Sample request

{ ... }

Sample response

{ ... }

Join a game channel

write:gameChannels
POST https://api.trytalo.com/v1/game-channels/:id/join

Headers

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

Route params

KeyRequiredDescription
id YesThe ID of the channel

Query keys

None available

Body keys

None available

Sample response

{ ... }

Leave a game channel

write:gameChannels
POST https://api.trytalo.com/v1/game-channels/:id/leave

Headers

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

Route params

KeyRequiredDescription
id YesThe ID of the channel

Query keys

None available

Body keys

None available


Invite another player to a game channel

write:gameChannels
POST https://api.trytalo.com/v1/game-channels/:id/invite

Headers

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

Route params

KeyRequiredDescription
id YesThe ID of the channel

Query keys

None available

Body keys

KeyRequiredDescription
inviteeAliasId NoThe ID of the player alias to invite

Update a game channel

write:gameChannels
PUT https://api.trytalo.com/v1/game-channels/:id

Headers

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

Route params

KeyRequiredDescription
id YesThe ID of the channel

Query keys

None available

Body keys

KeyRequiredDescription
autoCleanup NoWhether the channel should be automatically deleted when the owner leaves or the channel is empty (default is false)
name NoThe new name of the channel
ownerAliasId NoThe ID of the new owner of the channel
private NoPrivate channels require invites to join them (default is false)
props NoAn array of Props

Sample request

{ ... }

Sample response

{ ... }

Create or update storage properties in a game channel

write:gameChannels
PUT https://api.trytalo.com/v1/game-channels/:id/storage

Headers

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

Route params

KeyRequiredDescription
id YesThe ID of the channel

Query keys

None available

Body keys

KeyRequiredDescription
props YesAn array of storage properties to create or update. Set value to null to delete a property.

Sample request to create/update properties

{ ... }

Sample request to delete a property

{ ... }

Sample response

{ ... }

Sample response with deletion

{ ... }

Delete a game channel

write:gameChannels
DELETE https://api.trytalo.com/v1/game-channels/:id

Headers

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

Route params

KeyRequiredDescription
id YesThe ID of the channel

Query keys

None available

Body keys

None available


Types

Prop

type Prop = {
key: string
value: string | null
}