Planned — Rating endpoints are being added to the v1 API. 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)
If you compute rating externally, no new endpoint is needed. Write your rating results directly to the quote or endorsement using the existing update endpoints.How It Works
- Compute rating results in your own system
- Call
PUT /v1/quotes/{quoteId}(or the endorsement update endpoint) withpolicyRatingResponseandexposureRatingResponsefields populated - 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) | company.quote:rate |
| Update a quote (external) | company.quote:update |
Related Resources
- Quotes API — create and manage quotes
- Policy API — bind rated quotes into policies
- Roadmap — overall API direction
