GraphQL API

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

Openfront Auto Repair serves Keystone GraphQL at /api/graphql. The MCP server for assistants is at /api/mcp-transport/mcp. Customer link APIs are plain HTTP routes under /api/public/* that take a token, never a session. PDFs are served at /api/estimates/[id]/pdf and /api/invoices/[id]/pdf.

Public operations

No GraphQL operation is public. Online booking and "Check my repair" are server actions in features/storefront/actions. Customer links use the /api/public/* routes described on the external storefront page.

Staff queries

organizationSettingsItems, diagnosisHypotheses, redirectToInit, verifyAuditChain, checkAuthorizedCeiling, previewShopInvoice, shopDaySummary, followUpBoard, aiProviderStatus, diagnosisGate, supplierDisputeEmail, campaignPreview, shopReports, shopTieOuts, accountingJournalPreview, exportFile.

Mutations by area

AreaMutations
Work board and repair ordersopenShopRepairOrder, holdRepairOrder, addRepairJob, saveJobLines, editRepairJobLines, repriceRepairJob, transitionRepairJob, createCallbackTask, releaseShopVehicle, closeCallbackTask, closeRecommendation
InspectionsstartShopInspection, recordInspectionItem, attachInspectionMedia, completeShopInspection, sendShopInspection
Estimates and authorizationssendRepairEstimate, requestCustomerAuthorization, recordCustomerAuthorization
Check-in and scheduleholdAppointmentSlot, bookShopAppointment, transitionAppointment, attachAppointmentLead, checkInShopVehicle
Customers and vehiclessaveCustomer, addCustomerContact, recordContactConsent, saveVehicle, linkVehicleOwner, recordOdometerReading, decodeVehicleVin, checkVehicleRecalls, createCustomerPortalLink
Follow-ups, messages and campaignslogCustomerMessage, logCustomerCall, readMessageThread, saveMessageTemplate, markFollowUpContacted, markServiceReminderContacted, saveMarketingCampaign, exportMarketingCampaign, copyMarketingMessage, recordReviewRequest
Billing, receivables and day closefinalizeShopInvoice, createInvoicePayLink, takeShopPayment, checkShopPayment, resolveShopPayments, refundShopPayment, issueShopCreditMemo, closeShopDay, reopenShopDay
Fleet and business accountssaveBusinessAccount, saveAccountTerms, refreshAccountStanding, holdAccountCredit, releaseAccountHold, addAccountContact, addAccountApprover, removeAccountApprover, addAccountCertificate, revokeAccountCertificate, saveAccountUnit, createAccountLink, makeAccountStatement, exportAccountStatement, exportAllAccountStatements
Parts and stocksaveShopPartItem, requestSupplierQuote, recordSupplierQuote, selectSupplierQuote, createShopSupplierOrder, placeSupplierOrder, recordPhoneOrder, resolveUnknownSupplierOrder, confirmShopSupplierOrder, cancelShopSupplierOrder, receiveShopSupplierOrder, reserveJobPart, issueJobPart, returnJobPart, adjustShopStock, startShopCycleCount, recordShopCounts, postShopCycleCount, markShopCoreReturned, writeOffShopCore, createShopSupplierReturn, advanceShopSupplierReturn, recordShopSupplierInvoice, matchShopSupplierInvoice, resolveSupplierDiscrepancy, approveShopSupplierInvoice, exportShopSupplierInvoice, reverseShopSupplierInvoice, recordShopJobTire, completeShopTireRegistration, confirmShopTireRegistration, releaseShopJobReservations
Labor, time and comebacksclockInShift, clockOutShift, startShiftBreak, endShiftBreak, startTechJobClock, stopTechJobClock, logJobWaiting, requestTimeCorrection, saveTechCredential, assignShopJobTechnicians, adjustTechFlaggedHours, closeShopPayPeriod, exportShopPayPeriod, openShopComeback, diagnoseShopComeback, requestComebackGoodwill, resolveShopComeback, createShopPartWarrantyClaim, attachShopComebackJob, cancelShopComeback, withdrawShopPartWarrantyClaim
Diagnosis and assistantscreateAssistant, grantAssistantScope, revokeAssistantScope, pauseAssistant, retireAssistant, saveAiProvider, removeAiProvider, askAssistant, draftAgentProposal, suggestEstimate, confirmAgentProposal, rejectAgentProposal, startDiagnosisSession, addDiagnosisHypothesis, recordDiagnosisTest, markDiagnosisQuoteReady, markDiagnosisInconclusive, closeDiagnosisSession, queueVoiceTask, logVoiceCall
Reports and accounting exportsaveAccountingMappings, stageAccountingBatch, exportAccountingBatch, recordAccountingResponse, saveReportSnapshot
Shops, policies and settingscreatePolicyDraft, publishPolicyVersion, saveCannedJob, publishCannedJobVersion, setCannedJobStatus, previewDataImport, applyDataImport, discardDataImport, saveIntegrationConnection, recordIntegrationHealth, revokeIntegrationConnection, recordProviderObservation
Setup and approvalsloadNorthgateSetup, decideApprovalRequest, cancelApprovalRequest, requestOrgControls

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

On this page