Integrations

Three ways to put Moonlight in your software.

Start with a link, move to an embed, or take the API and build your own. All three run on the same quoting and application engine.

Embed

Put Moonlight inside your own software.

The same URL, inside an iframe. Pass the record your user is looking at through the query string and Moonlight opens on it, so the two stay in step without an SDK or postMessage, which is all most CRMs allow anyway.

Every hyperlink parameter works here too, plus a few that only make sense once Moonlight is living inside another product.

HTML
<iframe
  src="https://app.mooonlight.com/?tab=quoting&product=med_supp&zip=33602&age=65&gender=F&tobacco=0&accent=0f766e&wl=1&nav=quoting,eapps"
  title="Moonlight"
  width="100%"
  height="800"
  style="border: 0"
></iframe>

Embed parameters

  • accent6-digit hex, no #Recolors Moonlight's buttons and focus rings to match the software around it.
  • wlyour Purl slug · 1White label: your Purl slug shows your uploaded logo in place of Moonlight's; 1 shows the shared default branding.
  • navquoting · eapps · ssbci · carriers · purl · embedComma-separated list of the sidebar items to show. Leave it off to show them all.
  • tabquoting · eappseapps opens the application side; first, last, dob, phone, email, street, city and addr_state prefill it.

When an application is submitted, a webhook tells your system. Set it up in the app

Try it

A contact record in a stand-in CRM, with Moonlight embedded beneath it. Switch contacts, or flip between Quoting and eApps: the only thing that changes is the iframe's query string, and Moonlight follows. Its buttons are Acme's teal because the URL carries accent=0f766e.

Acme CRM
Live Moonlight in an iframe
Contacts

Maria Alvarez

Tampa, FL · Interested in Medicare Supplement

Lead
Phone
813-555-0142
Email
maria.alvarez@example.com
Date of birth
Mar 14, 1961
Address
1420 Bayshore Blvd, Tampa, FL 33602
Age
65
Gender
Female
Tobacco
No
Medical
No known conditions, no current medications
Moonlight
iframe srchttps://app.mooonlight.com/?tab=quoting&product=med_supp&zip=33602&age=65&gender=F&tobacco=0&face=15000&underwriting=No+known+conditions%2C+No+current+medications&accent=0f766e&nav=quoting,eapps

API

Build your own front end on our backend.

Everything the app does is a REST call: the product catalog, live quotes, Medicare Advantage plans and enrollment, underwriting screens, AI prefill, premium calculation, filled carrier PDFs, remote signatures, carrier submission, fax tracking and webhooks.

We run the pipeline; you design the screens. Rebuild Moonlight inside your product however you like.

  1. GET
    Discover products/v1/catalogEvery product id with its label, carrier and states.
  2. GET
    Get the form/v1/products/{id}/schemaA product's application fields and health questions.
  3. POST
    Quote/v1/quotesLive premium comparison across carriers.
  4. POST
    Companion quotes/v1/quotes/companionCancer, heart attack and stroke, home health, accident, term life, short-term care and under-65 plans.
  5. GET
    Medicare Advantage plans/v1/medicare-advantage/plansPlans in a ZIP's county, each plan's details and its enrollment form.
  6. GET
    Doctors and networks/v1/medicare-advantage/providersFind a client's doctors and offices, then check which plans have them in network.
  7. POST
    Read the notes/v1/underwriting/extractMedications and conditions pulled from free-form notes, with dates.
  8. POST
    Screen health/v1/underwritingMedical history against each product's health questions.
  9. POST
    Screen prescriptions/v1/underwriting/prescriptionsA medication list against carrier drug lists; /v1/drugs/parse reads a pasted list.
  10. POST
    Prefill/v1/prefillMap client notes onto the application's fields.
  11. POST
    Price it/v1/premiumExact premium for the chosen carrier and plan.
  12. POST
    Fill the PDF/v1/renderThe carrier's state-specific application, filled.
  13. POST
    Collect signatures/v1/signaturesSigning link by SMS or email, per-signer status, the signed PDF.
  14. POST
    Submit/v1/submissionsDeliver the signed application to the carrier.
  15. POST
    Or send answers only/v1/applicationsMoonlight fills, signs and faxes the application.
  16. POST
    Enroll in Medicare Advantage/v1/medicare-advantage/enrollmentsEnrollment answers in, signed and sent to the carrier.
  17. GET
    Track delivery/v1/faxesEvery carrier fax from queued to delivered.
  18. PUT
    Get notified/v1/webhookSigned POSTs as signatures, submissions and faxes change.
Request · POST /api/v1/quotes
curl -X POST https://app.mooonlight.com/api/v1/quotes \
  -H "Authorization: Bearer $MOONLIGHT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product":"med_supp","zip5":"33602","age":65,"gender":"F","tobacco":false,"plan":"G"}'
Response
{
  "carriers": [
    {
      "company": "…",
      "startingMonthly": 123.45,
      "quotes": [{ "planName": "Plan G", "monthly": 123.45, … }]
    },
    …
  ],
  "totalQuotes": 12
}

Base URL https://app.mooonlight.com/api/v1. Authenticate with Authorization: Bearer ml_live_… or an x-api-key header. Keys are created in the app under API and white label.