Skip to main content
GET
/
api
/
external
/
companies
/
{companyId}
/
events
/
financials
/
expected-totals
/
timeline
List Expected Total Timeline
curl --request GET \
  --url https://app.aiinsurance.io/api/external/companies/{companyId}/events/financials/expected-totals/timeline \
  --header 'Authorization: <api-key>'
[
{
"entityId": "550e8400-e29b-41d4-a716-446655440001",
"timestamp": "2025-01-15T10:30:00.000Z",
"transactionId": "661f9511-f30a-52e5-b827-557766551111",
"createdByUserId": "772g0622-g41b-63f6-c938-668877662222",
"createdByUserName": "John Doe",
"categoryId": "alae_invoice",
"categoryName": "ALAE",
"expectedTotalCents": 150000
},
{
"entityId": "550e8400-e29b-41d4-a716-446655440001",
"timestamp": "2025-01-20T14:00:00.000Z",
"transactionId": "772g0622-g41b-63f6-c938-668877662222",
"createdByUserId": "772g0622-g41b-63f6-c938-668877662222",
"createdByUserName": "John Doe",
"categoryId": "alae_invoice",
"categoryName": "ALAE",
"expectedTotalCents": 250000
}
]

Authorizations

Authorization
string
header
required

Use format: ApiKey <your-api-key>

Path Parameters

companyId
string<uuid>
required

Company identifier

Query Parameters

entityIds
string<uuid>[]
required

Event IDs to retrieve timeline for (repeat param for multiple)

Minimum array length: 1
categoryIds
string[]

Filter to specific transaction category IDs

Response

Timeline of expected total snapshots (sorted chronologically)

entityId
string<uuid>
required

Event ID

timestamp
string<date-time>
required

ISO 8601 timestamp when reserve was updated

transactionId
string
required

ID of the reserve update transaction

categoryId
string
required

Transaction category ID (e.g., "alae_invoice")

categoryName
string
required

Human-readable category name

expectedTotalCents
integer
required

Expected total amount in cents at this point in time

createdByUserId
string | null

User ID who created the update (null if system-generated)

createdByUserName
string | null

User name who created the update (null if user not found)