Skip to main content
Session tags label a session with the step in your product where you called Verisoul, such as 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 cashout sessions.
  • Filtering. Find every login session for a user, or compare decisions between signup and withdrawal.
  • Reporting. Count how many risky sessions each step of your flow sees.

Sending tags

Put tags 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 400 with error.code invalid_request and error.details[].field set to session.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, and GET /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.