Skip to main content
POST
Rate Saved Quote by Id

Authorizations

Authorization
string
header
required

API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.

Path Parameters

companyId
string<uuid>
required

Company identifier

quoteId
string<uuid>
required

Quote identifier

Body

application/json
ratingWorkflowName
string

The configured rating workflow to run. Required in practice — there is no default even when a single workflow is configured — but it is not schema-required: rather than a shape rejection, a missing or unknown name returns a 400 listing the configured workflow names (and a company with no workflows configured returns a 422), so callers get an actionable error naming the valid options. There is no fallback to any per-quote persisted selection.

Example:

"standard"

Response

The rating outcome. A successful rate records the requested workflow selection, but the returned field values remain caller-persisted.

Success: data carries the saved quote's bag enriched with rating outputs.

Rating failure: the response is still 200, with diagnostics describing what went wrong and no data — the absent data is the failure signal, so do not treat the presence of diagnostics alone as failure: severity: warning diagnostics ride alongside a successful data when a rater reports them. Rating failures are engine/vendor faults during rating execution; an invalid request is still a 4xx, and an unexpected application fault is still a 500.

data
object

The saved quote's stored field bag, enriched with rating outputs (per-exposure exposureRatingResponse, and the full-term policy rating containers). Absent when the rate failed.

diagnostics
object[]

Rating diagnostics. Present with severity: error entries when the rate failed (in which case data is absent), or with severity: warning entries beside a successful data.