Hosted rating endpoints are planned — dedicated endpoints that invoke AI Insurance’s hosted rating engine are being added to the v1 API. External rating (“bring your own engine”) works today via the existing entity-update endpoints (see below). See the Roadmap for overall API direction.
Hosted Rating
Invoke the AI Insurance-configured rating engine for a quote or endorsement. The system runs the configured rater (per company), computes results, and writes them to the rating response fields.Planned Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/quotes/{quoteId}/rate | Invoke the configured rating engine for a quote |
| POST | /v1/policies/{policyId}/rating/endorsement | Rate an endorsement (a set of deltas) for a policy |
| POST | /v1/rating/rate | General rating — feed in a segment and get it rated |
How It Works
- Call the appropriate rating endpoint for your use case
- The system invokes the rating engine configured for your company
- Rating results are written to the
policyRatingResponseandexposureRatingResponsefields - The response returns the computed rating results
When to Use
- You use AI Insurance’s built-in rating engine
- You want the system to compute premium based on your configured rating logic
- You want a single API call to rate and store results
External Rating (Bring Your Own Engine)
External rating is available today — no new endpoint is needed. If you compute rating externally, write your rating results directly to the quote (or policy endorsement) using the existing update endpoints.How It Works
- Compute rating results in your own system
- Update the quote via
PATCH(orPUTalias)/api/v1/external/companies/{companyId}/entities/quote/{entityId}withpolicyRatingResponseandexposureRatingResponsefields populated. For an in-force policy, write rating results through a policyendorsetransaction instead. - The system treats these as regular field data — no special handling required
When to Use
- You have a proprietary rating engine
- Rating is computed outside AI Insurance
- You need full control over the rating calculation
Both Approaches Work Together
The API doesn’t require rating results to come from any specific source. Whether you use hosted rating, external rating, or a combination, the downstream workflow is the same: once rating fields are populated on a quote or endorsement, it can proceed through the workflow.Permissions
| Operation | Permission |
|---|---|
| Rate a quote (hosted) | Planned — not yet exposed via the external API |
| Update a quote (external rating) | company.policy:create (the Quote update permission) |
Related Resources
- Quotes API — create and manage quotes
- Policy API — create policies from rated quotes via the transaction model
- Roadmap — overall API direction
