APIs

Rating, quoting, and payment link APIs with Swagger docs and real-time events.

Every capability in our quoting widget and portal is backed by a clean JSON REST API. Call the rating engine from your own systems, generate hosted payment links on demand, and subscribe to webhook events across the policy lifecycle.

Call the rating engine and payment flows from any system

Whether you are embedding our widget, building a custom broker portal, or calling the rating engine directly from your policy administration system, the InsureOS API evaluates your published product rules and returns a structured JSON response with the complete calculation trace.

Interactive Swagger documentation makes it straightforward for your developers to explore schemas and test requests. Every API call and outbound event is logged in the portal so your team can inspect payloads, response times, and downstream third-party integrations, or pair API calls with automated customer workflows.

InsureOS event detail for quote.created showing the raw JSON payload, integration log entries for each policy system call, and related retriggered executions
Every event keeps its raw payload, the integration calls it triggered with their status and timing, and any retriggered runs, so developers can trace a quote from emission to the policy system.

Built for clean integrations. Full visibility on every call.

01

Interactive Swagger docs

Browse request and response schemas, authentication headers, and payload examples in our Swagger OpenAPI reference.

02

Scoped tokens & HMAC webhooks

Issue per-environment bearer tokens in the portal and verify every outbound webhook with an HMAC-SHA256 signature.

03

Searchable API & event logs

Inspect request bodies, validation errors, calculation traces, and downstream integration calls directly in the portal.

One API for
everything

Request rates, create quotes, issue policies, fetch history. JSON in and out, with clear errors at every step.

POST /products/CAR/calculate
{
  "rating_factors": {
    "cover_start_date": "2025-01-20",
    "sum_insured": 10000,
    "cover_type": "comprehensive",
    "driver_age": 18
  }
}
→ 200 OK
{
  "calculation_id": "c-x7dhe",
  "premium": "2970.0000",
  ...
}

What you can build with the API

Use InsureOS as a headless calculation and checkout engine or combine API calls with our embeddable quoting widget.

Rating & calculation API

Submit risk answers to evaluate a product version and receive the full premium breakdown across excess options, statutory levies, referral flags, and the step-by-step calculation trace.

Quoting & proposal API

Create, update, and retrieve structured quote intents from custom web frontends, broker portals, or internal underwriting desks.

Payment link & checkout API

Generate hosted checkout sessions and standalone payment links for new business, endorsements, or renewals from your existing policy system.

Events & webhooks

Subscribe your downstream services to structured, HMAC-signed webhook events emitted whenever quotes, referrals, payments, or policies change state.

Events emitted on every state change

Whenever a quote is created, referred, paid, or bound, InsureOS emits a structured event. Subscribe your own webhook receivers or let built-in listeners update your connected systems.

  • Webhook delivery signed with HMAC-SHA256 secrets
  • Structured event payloads across quotes, referrals, payments, and policies
  • Full payload inspection and one-click event retriggering in the portal
Event stream
acme-auto · production
  • quote.created
    14:32:18qx_7f3a92124ms
  • quote.rated
    14:32:19qx_7f3a9298ms
  • payment.initiated
    14:32:24pay_8b1c4142ms
  • payment.succeeded
    14:32:48pay_8b1c4108ms
  • quote.paid
    14:32:48qx_7f3a92116ms
  • policy.bound
    14:32:49pol_3d9f7132ms
  • document.generated
    14:32:50doc_2a4e194ms
  • webhook.dispatched
    14:32:51whk_5g8h288ms
Webhook subscriber acme-auto.example.com/v1/webhooks

Frequently asked questions about InsureOS APIs

  • Is Swagger documentation available for the API?

    Yes. InsureOS provides interactive Swagger (OpenAPI) documentation covering our rating, quoting, payment link, and webhook schemas so your developers can inspect payloads and test integration calls quickly.

  • Does the embeddable quote widget run on the same API?

    Yes. Our embeddable quoting widget uses the same API endpoints available to your engineering team. Every rating calculation, excess comparison, referral check, and payment link flow can be called programmatically.

  • Can our existing policy system call the InsureOS rating engine directly?

    Yes. Your policy administration system or broker portal can send risk answers to the rating API and receive the calculated base premium, statutory levies, fees, GST, and referral status back in real time.

  • Can we generate payment links via the API?

    Yes. You can create hosted payment links for new quotes, endorsements, or renewals via the API, allowing customers to pay upfront by card or bank transfer or set up monthly premium funding.

  • How are API tokens, webhooks, and logs managed?

    Administrators can issue per-environment API tokens, configure webhook endpoints with HMAC signing secrets, and inspect incoming API requests and outbound event deliveries directly in the portal.

  • How are validation and rating errors returned?

    Invalid requests return structured JSON error responses listing the specific fields that failed validation, while rating responses clearly report any triggered referral or decline rules alongside the calculation trace.

Get in touch

We'd love to hear from you

hello@os.insure
Built by
The Caretakers

A small New Zealand product studio. We design, build, and operate software for insurers.

caretakers.io