> For the complete documentation index, see [llms.txt](https://docs.userlane.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.userlane.com/developers/analytics-api/getting-started-with-validators.md). Agents can also search and read this documentation through its [MCP server](https://docs.userlane.com/~gitbook/mcp).

# Getting started with the Validators API

The Validators API tells you how your end users filled in validated form fields: how many entries were accepted, how many were fixed after a warning, and how many were left invalid. Use it to find the fields that cause your users the most trouble, and to track whether data quality is improving.

All requests go to `https://api.userlane.com/analytics`. For pagination, sorting, empty values, and errors that apply to every Analytics API endpoint, see [Using the Analytics API](https://docs.userlane.com/developers/analytics-api/using-the-analytics-api.md).

There are two endpoints. One gives you counts, the other gives you the individual entries behind those counts. They cover the same data at different grains, and they reconcile exactly.

Both endpoints cover Validators that have a Completion Button configured. A property using only older Validators returns an empty list rather than an error.

## Aggregated validator compliance

`GET /public/validators/property_id/{propertyId}/aggregated`

Each row represents one user, one Validator, on one day, under one validation mode. It carries the number of submitted sessions, the number of fields the user entered data into, and how those entries ended.

Use this for:

* Tracking a compliance rate over time, per Validator or across all of them.
* Finding the Validators where users most often leave invalid data.
* Comparing data quality between user groups, by joining on your own user id.

### Calculating the compliance rate

The compliance rate is the share of data entries that did not end invalid:

```
complianceRate = (dataEntries - nonCompliant) / dataEntries
```

Note that `compliant` is **not** the numerator. A field the user fixed after a warning still ended up valid, so the numerator is `compliant + corrected`. The three outcome columns always sum to `dataEntries`.

`sessions` counts whole passes through the Validator, not fields, so it is not a subdivision of `dataEntries`. A session where the user submitted without entering anything appears with `sessions` of 1 and `dataEntries` of 0.

## Validator data entries

`GET /public/validators/property_id/{propertyId}/entries`

Each row represents one field that one user entered data into, inside one submitted session. It names the session and the field, and says how that entry ended.

Use this for:

* Auditing a specific case, where a count is not enough.
* Finding which individual fields inside a Validator fail most often.
* Measuring effort per field, through `fieldAttempts` and `submitAttempts`.

Fields the user never touched are not included. Every field validation in the Validator produces a record when the form is submitted, but a field nobody touched is not a data entry.

### Reconciling the two endpoints

Over the same property and the same date range:

* The number of rows from `/entries` equals the sum of `dataEntries` from `/aggregated`.
* The rows of each `outcome` equal the matching column: `compliant`, `corrected` and `nonCompliant`.
* The number of distinct (`validatorId`, `validatorSessionId`) pairs can be lower than the sum of `sessions`: `/aggregated` also counts sessions in which the user entered nothing, and those sessions have no rows in `/entries`. Count pairs rather than `validatorSessionId` alone, because a session ID is only unique within its validator.

If these do not match, check that both requests used the same range and that neither walk was cut short.

## Validation modes

Every row carries the `mode` the entry was measured under, and the mode changes what the outcomes mean:

| Mode      | What the user sees                           | Notes                                             |
| --------- | -------------------------------------------- | ------------------------------------------------- |
| `warning` | A message, and the submit is refused         | The only mode where `submitAttempts` can exceed 1 |
| `visible` | A message, but the submit still goes through |                                                   |
| `measure` | Nothing at all                               | `corrected` is always 0 here                      |

Because `measure` shows the user nothing, a field they silently fixed is counted as `compliant` rather than `corrected`. So `compliant` means "never failed" under `warning` and `visible`, but "ended valid" under `measure`.

A Validator's mode can change between sessions on the same day, which is why mode is part of the row rather than a property of the Validator.

## Date handling

`start` and `end` are both required and both inclusive. Pass an ISO date such as `2026-09-01`, or a full ISO datetime, in which case the time part is ignored.

A session is recorded against the date it started, in full. A session running past midnight stays on one date and does not split across two rows.

The current day is served, but it is still being rewritten as sessions close. End your range at yesterday if you need an extract you can reproduce later.

## Pagination

Both endpoints use cursor pagination.

1. Make your first request without a `cursor`.
2. Read `pagination.nextCursor` from the response.
3. Pass that value back as `cursor` on the next request, keeping every other parameter the same.
4. Stop when `nextCursor` is `null`. That was the last page.

The cursor is opaque: do not build, parse, or modify it, pass back exactly what you received. Changing `start`, `end` or `limit` partway through a walk invalidates it.

## Limitations

* Page size is at most 5000 rows, and defaults to 1000.
* Requests to the public API are rate limited to 2 per minute, with a short burst allowance. Use the largest page size you can rather than many small requests.
* There is no cap on the date range, but a long range is expensive to walk. Pull incrementally, a day or a week at a time, rather than re-pulling a year on every run.
* Rows carry Validator and field identifiers, not names. Match them against your Validator configuration in the Userlane Portal.
* `applicationUserId` is an empty string for users with no mapping to your own identifiers.
* Timestamps in `/entries` are UTC and carry no timezone offset in the value.
* Responses are cached for 5 minutes.

## Authentication

This API is protected and requires authentication by a Bearer Token. You can generate your token under **Settings > API Token** in the Userlane Portal. Send it in the `Authorization` header; a bare token without the `Bearer` prefix is also accepted.

## Next steps

* Aggregated validator compliance (`GET /public/validators/property_id/{propertyId}/aggregated`) in the API reference
* Validator data entries (`GET /public/validators/property_id/{propertyId}/entries`) in the API reference


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.userlane.com/developers/analytics-api/getting-started-with-validators.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
