> ## 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

> Session object structure in v1 request bodies

# Session Type

The Session object identifies the session being evaluated. It is the `session` field of 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) request bodies.

## Structure

| Field | Type | Required | Description |
| - | - | - | - |
| `id` | string | Yes | The session ID returned by the Verisoul SDK |
| `tags` | array | No | Labels for this step in your flow, such as `["login"]`. See [Session Tags](https://docs.verisoul.ai/integration/advanced/session-tags.md) |
| `utm` | object | No | How this visit arrived: `source`, `medium` and `campaign`. See [UTM](#utm) |

## UTM

The `utm` object records how the visit arrived, using the standard `utm_source`, `utm_medium` and `utm_campaign` values.

| Field | Type | Description |
| - | - | - |
| `source` | string | Where the visit came from, such as `google` or a partner name |
| `medium` | string | The channel, such as `cpc`, `email` or `referral` |
| `campaign` | string | The campaign name or ID |

* Each value is 1 to 64 characters from `A-Z`, `a-z`, `0-9`, `_`, `.` and `-`.
* On the web, the Verisoul SDK reads these values from the landing URL, so most web integrations can leave `utm` out.
* Send `utm` for native apps, or when your server knows the attribution. A value you send replaces the one the SDK read.
* The response returns the stored values in `session.utm`. A field is `null` when it is unknown.

## Example

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


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