identify() traits or in a traits event from your game or website, 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 any string, number or 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, with a link 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():
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.
Reserved names and values
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.