Skip to main content
POST
Rate Quote (Read-Only)

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

Body

application/json
data
object
required

The create-quote payload — the flat field bag, unchanged. Custom fields are validated against your company's field configuration (unknown fields rejected, required fields enforced, values matched to their configured types). Embedded exposure values are validated per-field against the Exposure configuration and must reference existing Exposure records by id; each referenced exposure's stored fields are then merged in for rating, with any fields you supply inline winning over the stored values.

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.

Example:

"standard"

Response

The rating outcome. Nothing is persisted either way.

Success: data carries the quote 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 same field bag from the request, 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.