Quote API
The quote calculator exposes a small set of Next.js API routes under /api/quote/*.
This page gives a high-level overview. For full request/response examples, see:
Endpoints
Currently documented endpoints:
POST /api/quote/track– Real-time tracking of calculator interactions.POST /api/quote/submit– Final quote submission, validation, and integrations.GET /api/quote/pdf– PDF quote generation and download.
Details for each endpoint, including payload shapes and example responses, are in:
Data flow
In combination with the wider system:
- User interacts with the quote calculator UI.
POST /api/quote/trackcaptures selections and estimated ranges.POST /api/quote/submitperforms validation and persists quote data.- Sanity CMS stores structured quote data.
- HubSpot CRM is updated with contact plus quote properties.
- A PDF summary can be generated via
GET /api/quote/pdf.
See also:
TODO
Verify the exact routes and response contracts in the main application repository to ensure this page and quote-endpoints remain accurate when the API evolves.