- Events come in two types: claims and incidents
- Events can have open or closed status
- Events must have one or more insureds (required)
- Events can optionally be associated with a policy
- Events contain custom entity data (
datafield) with field keys mapped to values
API Endpoints
- List Events - Retrieve paginated list of events with filtering and sorting
- Get Event - Retrieve a single event by ID
- Create Event - Create a new claim or incident
- Update Event - Update an existing event
- Delete Event - Soft delete an event
- Get Events Configuration - Retrieve JSON Schema for event custom fields
Event Types
Events can be one of two types:Event Status
Events can have one of two statuses:Associated Insureds
Events are associated with one or more insureds via theinsuredIds field.
By default, the API returns an array of insured IDs:
GET /events/{eventId}, you can request expanded insured details with expand=insureds:
Custom Entity Data
Thedata field contains custom entity data specific to each company’s configuration. This allows you to store and retrieve company-specific information about events.
Field Keys vs Field IDs
Important: Thedata field uses field keys (human-readable names like “eventDescription”) instead of field IDs (UUIDs).
When is data null?
The data field returns:
null- When no custom entity data exists for the event{ ... }- An object with field key-value pairs when custom data exists
Field Configuration
Custom entity data fields are configured per company in AI Insurance. The available fields and their keys depend on your company’s setup. To see which fields are available for events, use the Get Events Configuration endpoint. The response includes:data— a standard JSON Schema (draft 2020-12) describing all possible fieldsfieldCoverageTypeMappings— maps each field key to"all"(applies to all events) or an array of coverage type IDscompanyCoverageTypes— the list of coverage types enabled for your company
"all" applies to every event. A field mapped to an array of coverage type IDs only applies to events of those coverage types. If a field’s coverage type list matches every ID in companyCoverageTypes, it effectively applies to all events today — but won’t automatically extend to new coverage types added in the future.
See JSON Schema Format Types for the list of supported format values.
Nullable Fields
The following fields may benull in the response:
Filtering and Sorting
List endpoints support comprehensive filtering and sorting options:Filter Parameters
Sorting Parameters
Pagination
Response includes:
items- Array of events for the current pagetotalCount- Total number of matching events across all pages
Deleting Events with Financial Transactions
By default, events with paid or processing financial transactions cannot be deleted. This protects financial data integrity. If you need to delete such an event, you can setforce: true in the DELETE request body:
force: true, the API will return an error message indicating how many transactions are blocking deletion.
Permissions
Access to events requires the appropriate permissions based on your API key. Permissions are event-type specific:
Note: Update permissions use a slightly different format (
claim:update vs company.claim:update).
