- an
identifycall with a user ID - a
traitscall, with or without a user ID (without one, the traits belong to one browser or game install) - the player traits API
- an edit on the player profile in the dashboard
null to delete a trait.
Known traits
Known traits are player identity and social fields, such as the Steam ID, the Discord ID and the display name. They have a label and an icon, are listed first on the player profile’s Traits tab, and get a light format check on write. Set them asidentify() traits or in a traits event from your game or website. You can also set them with the player traits API or on the profile in the dashboard. The protected traits, such as email, come only from your server, the API or the dashboard.
Every other key is a custom trait, such as supporter or favorite_class. It accepts a string of up to 1024 characters, a finite number, or a boolean.
Known trait values must be strings, including the Discord ID and the Steam ID. A SteamID64 or a Discord ID sent as a JSON number is above 2^53, so JSON parsers change its last digits. Always send them as strings.
Linked accounts
A validsteam_id or discord_id shows as a linked account under the player’s name on the profile. It links to the public Steam or Discord profile. In the Players filter menu, Linked account finds the players with (or without) a Steam or Discord account. Your game reads the SteamID from Steamworks (for example SteamUser.GetSteamID()) and sends it in identify():
steam_id trait is a claimed account: nothing checked it. A verified account comes from a Steam ticket that Manalens checked. Only a verified account reads ownership and merges game installs. See verified and claimed.
If your privacy notice covers it, send a Steam or Discord ID. Otherwise do not send one. It is personal data, the same as an email.
Protected traits
Only a trusted channel can set these traits: server events with the secret key, the player traits API, and the dashboard.
A website or a game build holds only the publishable key, so anyone can read it and send any value. So Manalens drops these keys from web and app
identify and traits events, and keeps the other traits of the event. Send email from your server or with the API.
Rules and limits
user_idis the profile key. It is in the path, and it cannot be set or unset as a trait.- The string
_is_deletedis refused as a value. Sendnullto delete a trait.
identify and traits events, the player traits API and trait edits in the dashboard. The API and the dashboard refuse a bad value. An event keeps its other traits and drops only the trait that fails its check, so one bad value does not lose the event. A custom key starts with a letter, then has letters, digits, _, . or -, up to 100 characters. In all of them, null deletes the trait. Every write has the same limits: at most 50 traits and 8 KB of JSON per player.