GraphQL API

The endpoint, MCP transport, and the custom queries and mutations.

Openfront Home Services serves Keystone GraphQL at /api/graphql. The MCP server for agents is at /api/mcp-transport/mcp. Agent reads are masked, and each write needs a grant for that exact tool. Document and export routes live under app/api, including accounting exports, cancellation notices, estimates, membership renewals, pay periods, purchase orders, the refrigerant log, reports, stock and warranty.

Public operations

No GraphQL operation is public. The storefront uses the server actions in features/storefront/actions.ts (checkZip, loadWindows, confirmBooking, startInvoicePayment, openByCode).

Staff queries

companySettingsItems, mediaItems, redirectToInit, verifyAuditChain, resolvePolicy, availableWindows, lookupCustomer, customerHistory, lookupLocations, matchJobType, checkEligibility, searchPriceBook, quotePriceBook, priceBookVersionReview, estimateSummary, agentBindings.

Mutations by area

AreaMutations
Calls, leads and bookingmaterializeWindows, holdWindow, releaseHold, bookJob, ingestLead, markLeadContacted, qualifyLead, loseLead, markLeadSpam, mergeLead, recordConsent, handoffToHuman, pageOnCall
Dispatch and the field viewrecommendDispatch, assignVisit, unassignVisit, submitChecklist, setVisitStatus, holdJob, releaseJobHold, cancelJob, completeJob
CustomersaddCustomer, addServiceLocation, addContactPoint, storeAccessSecret, revealAccessSecret
Estimates, change orders and cancellationsopenEstimate, draftEstimate, draftEstimateFromCapture, draftFollowupEstimate, saveEstimateOption, removeEstimateOption, repriceEstimateVersion, setEstimateDiscount, reopenEstimateVersion, presentEstimate, sellEstimate, declineEstimate, requoteEstimate, discardEstimateVersion, draftChangeOrder, presentChangeOrder, acceptChangeOrder, declineChangeOrder, deliverCancellationNotice, waiveCancellationNotice, recordBuyerCancellation, markCancellationRefunded, requestCancellationHoldOverride
Price bookopenPriceBook, startPriceBookDraft, saveDraftItems, removeDraftItems, saveDraftSettings, submitPriceBookVersion, reopenPriceBookDraft, discardPriceBookVersion, importSupplierCosts
Invoices, payments and accountingcreateInvoiceDraft, discardInvoiceDraft, postInvoice, voidInvoice, issueCreditMemo, requestWriteOff, setCollectionsStatus, recordInvoicePayment, applyCustomerCredit, startPaymentAttempt, markAttemptUnknown, resolveAttemptFailed, requestRefund, recordApprovedRefund, settleRefundedMembershipInvoice, closePaymentBatch, reconcilePaymentBatch, saveFinancingProgram, startFinancing, recordFinancingStatus, recordFinancingFunding, savePayerProfile, recordThirdPartyAuthorization, requestArPeriodClose, reopenArPeriod, createExportBatch
Memberships and service agreementsopenMembershipPlan, saveMembershipPlanDraft, activateMembershipPlanVersion, retireMembershipPlan, sellMembership, updateMembershipPaymentMethod, renewMembership, cancelMembership, transferMembership, bookMembershipVisit, releaseMembershipVisit, runMembershipBilling, retryMembershipCharge, recordRenewalNotice, saveServiceAgreement, activateServiceAgreement, endServiceAgreement, setDocumentExpiry
Equipment and warrantyrecordEquipment, recordEquipmentReading, retireEquipment, ensureWarrantyRegistration, markWarrantyRegistrationSubmitted, confirmWarrantyRegistration, openWarrantyClaim, saveWarrantyClaimDraft, markWarrantyClaimReady, submitWarrantyClaim, recordWarrantyClaimNumber, recordWarrantyClaimDecision, settleWarrantyClaim, closeWarrantyClaim, appealWarrantyClaim, requestWarrantyWriteOff, writeOffWarrantyClaim, receiveHomeWarrantyDispatch, advanceHomeWarrantyDispatch
Inventory and purchasingsaveStockItem, saveStockLocation, consumeStock, installSerializedUnit, transferStock, adjustStock, saveMinMaxRule, proposeReplenishment, decideReplenishment, fillReplenishment, startCycleCount, submitCycleCount, requestCycleCountApproval, postCycleCount, openPurchaseOrder, submitPurchaseOrder, approvePurchaseOrder, markPurchaseOrderSent, cancelPurchaseOrder, receivePurchaseOrder, requestOverReceipt, recordVendorBill, requestBillVariance, acceptBillVariance
Permits, refrigerant, liens and policiesopenPermit, advancePermit, requestInspection, recordInspectionResult, reinspect, saveRefrigerantCylinder, logRefrigerant, resolveLeakRate, checkRefrigerantInstall, trackLien, advanceLien
Team, timesheets and payrollverifyCredential, revokeCredential, proposeTimesheet, addTimeSegment, removeTimeSegment, submitTimesheet, approveTimesheet, rejectTimesheet, adjustTimesheet, definePayPlan, savePayPlanDraft, requestPayPlanPublish, publishPayPlanVersion, assignPayPlan, setAttribution, openPayPeriod, calculatePayPeriod, addPayAdjustment, requestPayPeriodApproval, approvePayPeriod, reopenPayPeriod, exportPayPeriod
Agents, tasks and settingsrefreshTimedStates, bindAgentApp, unbindAgentApp
Setup and approvalsloadCompanySetup, loadOperationsSetup, loadPriceBookSetup, decideApprovalRequest, cancelApprovalRequest, requestCompanyControls, setCompanyOnboardingStatus

Every state change takes an idempotencyKey. Repeating a call with the same key returns the first result.

On this page