Skip to main content
POST
/
api
/
external
/
companies
/
{companyId}
/
submissions
/
{submissionId}
/
loss-history
curl --request POST \
  --url https://app.aiinsurance.io/api/external/companies/{companyId}/submissions/{submissionId}/loss-history \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "history": [
    {
      "year": 2023,
      "data": {
        "company": "Acme Insurance Co",
        "policyNumber": "POL-2023-001",
        "policyPremium": 12000,
        "totalIncurred": 8000,
        "indemnityPaid": 4000,
        "expensesPaid": 1500,
        "totalReserves": 2500,
        "claimDescription": "Property damage from storm",
        "reportDate": "2023-09-15T00:00:00.000Z"
      }
    }
  ]
}
'
{
  "success": true
}

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

submissionId
string<uuid>
required

Submission identifier

Body

application/json
history
object[]
required

Loss history entries to append. Must contain at least one entry.

Minimum array length: 1

Response

Entries appended successfully.

success
boolean
required
Example:

true