Validate Policies (Batch)
Runs data consistency checks against multiple policies in a single request and returns paginated results. This is a read-only diagnostic endpoint — no data is modified.
Three modes control which policies are validated (mutually exclusive):
- Explicit pairs (
policyVersions) — validate specific policy/version combinations. Pagination parameters are ignored. - Time travel (
timeTravelBackToDate) — validate the latest version of each policy as of a historical point in time. Paginated vialimit/offset. - Default (neither parameter) — validate the latest version of
all policies in the company. Paginated via
limit/offset.
The same eight checks from the single-policy validation endpoint
are available. Use the checks parameter to select a subset.
Available checks
| Check | Scope | What it validates |
|---|---|---|
contiguity | version | Segments form a contiguous date range with no gaps or overlaps |
fullTermInvariance | version | Billing and policy metadata fields are constant across all segments in a version |
hashCorrectness | version | Stored segment hash matches the computed hash of the segment data |
noDuplicateSegments | version | No adjacent segments have identical hashes |
transactionSegmentExistence | version | At least one segment exists for the version |
versionSequentiality | policy | Versions are sequential starting from 1 with no gaps |
cancelEarnedPremium | policy | Cancel transaction premium matches earned premium through the cancellation date |
cancelReinstatePremium | policy | Reinstate transaction premium matches the pre-cancel version premium |
Required permission: company.policy:read
Documentation Index
Fetch the complete documentation index at: https://docs.aiinsurance.io/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key authentication. Include your API key in the Authorization header.
Path Parameters
Company identifier
Query Parameters
Comma-separated list of policyId:version pairs to validate.
Example: pol-abc:1,pol-def:2,pol-abc:3.
Each pair must have a non-empty policy ID and a positive integer version. Multiple versions of the same policy are allowed.
When provided, limit and offset are ignored — all requested
pairs are returned.
Mutually exclusive with timeTravelBackToDate.
ISO 8601 timestamp. Validates the latest version of each policy that has at least one transaction created on or before this date. Policies with no transactions by this date are excluded.
Mutually exclusive with policyVersions.
Comma-separated list of check names to run (e.g.,
contiguity,hashCorrectness). If omitted, all checks run.
Unrecognized check names are silently ignored. If all provided
names are unrecognized, all checks run (same as omitting the
parameter). Check names are case-sensitive.
Maximum number of policies to return per page. Required for all
requests, though it is ignored when policyVersions is
provided.
x >= 1Number of policies to skip before returning results. Defaults
to 0. Ignored when policyVersions is provided.
x >= 0Response
Paginated validation results
