- Policies are insurance contracts issued to insureds
- Each policy has a number, primary insured, and effective dates
- Policies can be filtered by primary insured and searched by text
- Results are paginated with a fixed page size of 50
API Endpoints
- List Policies - Retrieve paginated list of policies with filtering and sorting
Policy Fields
| Field | Type | Description |
|---|---|---|
id | uuid | Policy identifier |
companyId | uuid | Company identifier |
number | string | Policy number |
createdAt | datetime | When the policy was created (ISO 8601) |
primaryInsuredId | uuid/null | ID of the primary insured on this policy |
Filtering and Sorting
Filter Parameters
| Parameter | Type | Description |
|---|---|---|
primaryInsuredId | uuid | Filter by primary insured ID |
filterText | string | Text search across policy number and other fields |
Sorting Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
sortBy | string | createdAt | Field to sort by (createdAt, updatedAt, number, startsAtDate, endsAtDate) |
sortDirection | string | desc | Sort direction (asc or desc) |
Pagination
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number (1-based, page size 50) |
items- Array of policies for the current pagetotalCount- Total number of matching policies across all pages
Permissions
Access to policies requires the appropriate permissions based on your API key:| Operation | Required Permission |
|---|---|
| List Policies | company.policy:read |
