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

# Track Event

Train Vigilance AI to improve the accuracy of contextual risk scores.

**For example:** Send user, browser, and device information when events occur (e.g., successful logins). Vigilance AI builds a profile of typical behavior for each user.

**Required Scope**: `Authentication Only`, `Read Users`, `Manage users`, `Read All`, or `Manage All`.

<Note>
  External Documentation

  To learn more, visit the [OneLogin documentation](https://developers.onelogin.com/api-docs/2/vigilance/train).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | IP                 | The IP address.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
  | User Agent         | The user agent string.<br /><br />**Example:** `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3)`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
  | User Authenticated | Select to include if the metadata should be trusted.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | User ID            | The ID of the user. For OneLogin Adaptive Authentication, use format: `{region}_{OneLogin User Id}` (e.g., `US_12345678`).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | User Name          | The name of the user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | Verb               | The type of event being tracked.<br /><br />Use one of the predefined verbs or create custom verbs for other actions within your application.<br /><br />**Available pre-defined options:**<br />\* `log-in` - A user successfully logged into your app.<br />\* `log-out` - The user has logged out.<br />\* `log-in-denied` - The user failed to authenticate.<br />\* `authentication-challenge` - Authentication was challenged (e.g. MFA was required).<br />\* `authentication-challenge-pass` - The authentication challenge was passed.<br />\* `authentication-challenge-fail` - The authentication challenge failed. |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter   | Description                                                                                                         |
  | ----------- | ------------------------------------------------------------------------------------------------------------------- |
  | Device ID   | The device ID (e.g., `xxx-xxx-xxx`)                                                                                 |
  | FP Cookie   | The value of the `__tdli_fp` cookie.                                                                                |
  | Published   | The date and time of the event. Useful for preloading old events. Defaults to the time the API request is received. |
  | Session ID  | The session ID (e.g., `xxxx-xxxxx-xxxxx-xxxxx`)                                                                     |
  | Source ID   | The ID of the source, based on a group, customer, account, or user.                                                 |
  | Source Name | The name of the source.                                                                                             |
</div>

## Example Output

```json theme={"dark"}
OK
```

## Workflow Library Example

[Track Event with Onelogin and Send Results Via Email](https://library.blinkops.com/workflows/track-event-with-onelogin-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/track-event-with-onelogin-and-send-results-via-email/canvas" />
</div>
