Skip to main content
GET
/
api
/
external
/
companies
/
{companyId}
/
v1
/
events
/
{eventId}
Get Event
curl --request GET \
  --url https://app.aiinsurance.io/api/external/companies/{companyId}/v1/events/{eventId} \
  --header 'Authorization: <api-key>'
{
  "id": "550e8400-e29b-41d4-a716-446655440300",
  "companyId": "550e8400-e29b-41d4-a716-446655440000",
  "policyId": "550e8400-e29b-41d4-a716-446655440100",
  "lawsuitId": null,
  "fieldModelV1Data": {
    "eventType": "claim",
    "eventCoverageType": "General Liability",
    "lossDescription": "Water damage to building"
  },
  "createdAt": "2025-01-15T10:30:00.000Z",
  "createdBy": "google-oauth2|123456789",
  "updatedAt": null,
  "updatedBy": null
}

Authorizations

Authorization
string
header
required

API key authentication. Include your key in the Authorization header: Authorization: ApiKey YOUR-API-KEY

Path Parameters

companyId
string<uuid>
required

Company identifier

eventId
string<uuid>
required

Event identifier

Response

Event details

A Field Model V1 event entity with dynamic field data.

id
string<uuid>
required

Event identifier

companyId
string<uuid>
required

Company identifier

fieldModelV1Data
object
required

Dynamic field data for the event. Keys are field referenceIds defined in the company's field configuration. Includes base fields like eventType and eventCoverageType as well as any custom fields.

policyId
string<uuid> | null

Associated policy ID

lawsuitId
string<uuid> | null

Associated lawsuit ID

createdAt
string<date-time> | null

When the event was created

createdBy
string | null

User ID who created the event

updatedAt
string<date-time> | null

When the event was last updated

updatedBy
string | null

User ID who last updated the event