curl --request POST \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/policies \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"referenceId": "POL-2025-001",
"startsAtDate": "2025-01-01",
"endsAtDate": "2026-01-01",
"type": "C",
"billingPeriod": "annual",
"exposures": [
{
"insuredId": "550e8400-e29b-41d4-a716-446655440200",
"role": "primary",
"joinDate": "2025-01-01",
"terminationDate": "2026-01-01"
}
],
"coverages": [
{
"coverageTypeId": "550e8400-e29b-41d4-a716-446655440300"
}
]
}
'{
"id": "550e8400-e29b-41d4-a716-446655440100"
}Policies
Create Policy
Creates a new policy directly, primarily for historical imports where policies need to be created without going through the quote→bind wizard flow.
Workflow:
- Create insureds first via
POST /insureds - Create the policy with insured references via this endpoint
- The endpoint creates insured snapshots with the provided ratingInfo
Required fields:
referenceId- Policy number (must be unique)startsAtDate,endsAtDate- Coverage datestype- Policy type (C, N, T, O, P, S, Q, R, A)billingPeriod- Billing frequencyexposures- At least one exposure with exactly one havingrole: "primary"coverages- At least one coverage with validcoverageTypeId
Required permission: company.policy:create
POST
/
api
/
external
/
companies
/
{companyId}
/
policies
curl --request POST \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/policies \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"referenceId": "POL-2025-001",
"startsAtDate": "2025-01-01",
"endsAtDate": "2026-01-01",
"type": "C",
"billingPeriod": "annual",
"exposures": [
{
"insuredId": "550e8400-e29b-41d4-a716-446655440200",
"role": "primary",
"joinDate": "2025-01-01",
"terminationDate": "2026-01-01"
}
],
"coverages": [
{
"coverageTypeId": "550e8400-e29b-41d4-a716-446655440300"
}
]
}
'{
"id": "550e8400-e29b-41d4-a716-446655440100"
}Authorizations
Body
application/json
Was this page helpful?
