Skip to main content
GET
/
api
/
v1
/
external
/
companies
/
{companyId}
/
policies
/
{policyId}
/
transactions
List Policy Transactions
curl --request GET \
  --url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies/{policyId}/transactions \
  --header 'Authorization: <api-key>'
{
  "items": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440010",
      "policyId": "550e8400-e29b-41d4-a716-446655440001",
      "policyVersion": 1,
      "action": "NEW_BUSINESS",
      "effectiveDate": "2025-01-01",
      "transactionTimestamp": "2025-01-15T10:30:00.000Z",
      "createdAt": "2025-01-15T10:30:00.000Z",
      "createdBy": "550e8400-e29b-41d4-a716-446655440090"
    },
    {
      "id": "550e8400-e29b-41d4-a716-446655440020",
      "policyId": "550e8400-e29b-41d4-a716-446655440001",
      "policyVersion": 2,
      "action": "ENDORSE",
      "effectiveDate": "2025-06-01",
      "transactionTimestamp": "2025-05-28T14:30:00.000Z",
      "createdAt": "2025-05-28T14:30:00.000Z",
      "createdBy": "550e8400-e29b-41d4-a716-446655440090"
    },
    {
      "id": "550e8400-e29b-41d4-a716-446655440021",
      "policyId": "550e8400-e29b-41d4-a716-446655440001",
      "policyVersion": 3,
      "action": "CANCEL",
      "effectiveDate": "2025-09-01",
      "transactionTimestamp": "2025-08-25T09:00:00.000Z",
      "createdAt": "2025-08-25T09:00:00.000Z",
      "createdBy": null
    }
  ],
  "totalCount": 3
}

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

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header.

Path Parameters

companyId
string<uuid>
required

Company identifier

policyId
string<uuid>
required

Policy identifier

Query Parameters

page
integer
default:1

Page number (1-based, default 1, page size 50)

Required range: x >= 1
sortDirection
enum<string>
default:asc

Sort direction for policyVersion ordering (default asc). Use asc for chronological order, desc for most-recent-first.

Available options:
asc,
desc

Response

Paginated list of policy transactions

Paginated list of policy transactions.

items
object[]
required
totalCount
integer
required

Total number of transactions across all pages