signup, login or cashout. You send them on the Predict User and Predict Anonymous requests.
Why use tags
The same user can look different at each step. A new device is normal at signup and worth a second look at cashout. Tags let you treat those steps differently.- Rules per step. Build a rule on Session Tags so it only applies where it matters, for example a stricter proxy rule on
cashoutsessions. - Filtering. Find every
loginsession for a user, or compare decisions betweensignupandwithdrawal. - Reporting. Count how many risky sessions each step of your flow sees.
Sending tags
Puttags inside the session object:
- Up to 10 tags per request, each 1 to 32 characters from
a-z,0-9,_and-. - Tags are lowercased and de-duplicated, so
["Login", "login"]is stored as["login"]. - An invalid tag returns a
400witherror.codeinvalid_requestanderror.details[].fieldset tosession.tags. - The session keeps the latest non-empty list. A request without tags leaves the stored tags as they are.
- The response returns the tags in
session.tags, andGET /v1/session/{session_id}returns the stored tags.
Using tags in rules
Rules can match on Session Tags (isession.tags). A rule matches when the session has any of the listed tags, or, with the negated condition, none of them. The dashboard rule builder adds this field in an upcoming release.
Suggested tags
Pick a small, fixed set and use the same names everywhere:
Tags are available in the v1 API at api.verisoul.com. The legacy API ignores them.
