> ## Documentation Index
> Fetch the complete documentation index at: https://docs.verisoul.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Session Tags

> Label each session with the step in your flow it came from

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](https://docs.verisoul.ai/api-reference/v1/predict/user.md) and [Predict Anonymous](https://docs.verisoul.ai/api-reference/v1/predict/anonymous.md) 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:

```json theme={null}
{
  "session": {
    "id": "059fbf67-96b0-4ba8-adb2-40b8b339d7e0",
    "tags": ["login"]
  },
  "user": {
    "id": "usr_8f2k3m9q"
  }
}
```

* 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:

| Tag | Step |
| - | - |
| `signup` | Sign up |
| `login` | Sign in |
| `checkout` | Purchase |
| `cashout` | Withdrawal or payout |
| `profile_update` | Changes to email, phone or payout details |

Tags are available in the v1 API at api.verisoul.com. The legacy API ignores them.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.