PageSourceSearch

https://www.motorsales.ai/assets/ApiDocs-45kCMx0g.js

js motorsales.ai collected 2026-10-05 12:18:29 UTC 6,486 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/redoc.browser.lib-Dkl9zOs-.js","assets/vendor-react-jF_kt2JX.js","assets/index-C1SOuTNv.js","assets/index-DA76aOs4.js","assets/purify.cjs-D50sbBzc.js","assets/index-DmBTdXAg.js","assets/vendor-react-dom-ClxaEcYq.js","assets/vendor-radix-CP7hthBf.js","assets/vendor-query-BrIDhjy6.js","assets/vendor-router-CWiOgDIQ.js","assets/index-DD75WdVS.css","assets/index-Co_6QvmT.js","assets/find-BUDsi3-x.js"])))=>i.map(i=>d[i]);
2import{_ as n}from"./index-DmBTdXAg.js";import{r as s,j as e}from"./vendor-react-jF_kt2JX.js";import"./vendor-react-dom-ClxaEcYq.js";import"./vendor-radix-CP7hthBf.js";import"./vendor-query-BrIDhjy6.js";import"./vendor-router-CWiOgDIQ.js";function o(t){return{openapi:"3.1.0",info:{title:"Motorsales Analytics API",version:"1.0.0",description:"Programmatic access to Motorsales.ai analytics data. Use this API to pipe traffic, leads, and identified-dealer signals into your CRM or BI tool. Authenticate every request with an API key issued by your administrator.",contact:{name:"Motorsales.ai",url:"https://motorsales.ai"}},servers:[{url:t,description:"Production"}],components:{securitySchemes:{bearerAuth:{type:"http",scheme:"bearer",bearerFormat:"msai_live_*",description:"Pass your key as `Authorization: Bearer msai_live_...`."}},schemas:{OverviewResponse:{type:"object",properties:{visitors:{type:"integer"},sessions:{type:"integer"},pageviews:{type:"integer"},leads:{type:"integer"},identifiedDealers:{type:"integer"},identifiedPct:{type:"integer"},repeatPct:{type:"integer"},leadByType:{type:"object",additionalProperties:{type:"integer"}},trend:{type:"array",items:{type:"object",properties:{date:{type:"string"},count:{type:"integer"}}}}}},PagesResponse:{type:"object",properties:{pages:{type:"array",items:{type:"object",properties:{path:{type:"string"},views:{type:"integer"},unique:{type:"integer"}}}}}}}},security:[{bearerAuth:[]}],tags:[{name:"Analytics",description:"Aggregated analytics data"},{name:"Dealers",description:"Identified dealer signals"},{name:"System",description:"Health and meta"}],paths:{"/v1/health":{get:{tags:["System"],summary:"Health check",security:[],responses:{200:{description:"Service is healthy"}}}},"/v1/overview":{get:{tags:["Analytics"],summary:"Aggregated overview metrics",parameters:[{name:"from",in:"query",schema:{type:"string",format:"date-time"},description:"Start of window (ISO 8601). Defaults to 7 days ago."},{name:"to",in:"query",schema:{type:"string",format:"date-time"},description:"End of window (ISO 8601). Defaults to now."}],responses:{200:{description:"Overview metrics for the window",content:{"application/json":{schema:{$ref:"#/components/schemas/OverviewResponse"}}}}}}},"/v1/pages":{get:{tags:["Analytics"],summary:"Top pages",parameters:[{name:"from",in:"query",schema:{type:"string",format:"date-time"}},{name:"to",in:"query",schema:{type:"string",format:"date-time"}}],responses:{200:{description:"List of top pages with views and unique visitors",content:{"application/json":{schema:{$ref:"#/components/schemas/PagesResponse"}}}}}}},"/v1/leads":{get:{tags:["Analytics"],summary:"Recent leads",parameters:[{name:"from",in:"query",schema:{type:"string",format:"date-time"}},{name:"to",in:"query",schema:{type:"string",format:"date-time"}},{name:"limit",in:"query",schema:{type:"integer",maximum:1e3,default:500}}],responses:{200:{description:"Leads enriched with visitor, session and dealer context"}}}},"/v1/dealers":{get:{tags:["Dealers"],summary:"Identified dealers",parameters:[{name:"from",in:"query",schema:{type:"string",format:"date-time"}},{name:"to",in:"query",schema:{type:"string",format:"date-time"}}],responses:{200:{description:"Dealer list with visit counts"}}}},"/v1/dealers/{id}":{get:{tags:["Dealers"],summary:"Dealer detail",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Dealer with visitors, sessions, leads and pageviews"}}}}}}}const d=s.lazy(()=>n(()=>import("./redoc.browser.lib-Dkl9zOs-.js").then(t=>t.r),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])).then(t=>({default:t.RedocStandalone}))),m=s.lazy(()=>n(()=>import("./index-Co_6QvmT.js"),__vite__mapDeps([11,1,2,12,4,8,6,7])));function x(){const[t,a]=s.useState("redoc"),r="https://rhxwnzeobeisdgrbhupz.supabase.co/functions/v1/analytics-api",i=s.useMemo(()=>o(r),[r]);return e.jsx("div",{className:"-mx-4 lg:-mx-8 -my-8",children:e.jsxs("div",{className:"bg-white text-slate-900 min-h-screen",children:[e.jsxs("div",{className:"max-w-[1400px] mx-auto px-4 lg:px-8 pt-10 pb-6",children:[e.jsx("div",{className:"text-xs uppercase tracking-[0.18em] text-[#F01767] font-semibold",children:"motorsales"}),e.jsx("h1",{className:"mt-2 text-3xl md:text-4xl font-semibold tracking-tight",style:{fontFamily:"Montserrat, sans-serif"},children:"Analytics API"}),e.jsx("div",{className:"mt-3 h-[3px] w-24 rounded-full",style:{background:"linear-gradient(90deg, #F01767 0%, #702B7A 100%)"}}),e.jsx("p",{className:"mt-5 max-w-2xl text-slate-600 leading-relaxed",style:{fontFamily:"'Open Sans', sans-serif"},children:"Programmatic access to your Motorsales analytics. Pipe traffic, leads, and identified-dealer signals straight into your CRM or BI tool. Authenticate every request with an API key issued by your administrator."}),e.jsxs("div",{className:"mt-6 inline-flex rounded-lg border border-slate-200 p-1 bg-slate-50",children:[e.jsx("button",{onClick:()=>a("redoc"),className:`px-4 py-1.5 text-sm rounded-md transition-colors ${t==="redoc"?"bg-white shadow-sm text-slate-900":"text-slate-500 hover:text-slate-900"}`,children:"Reference"}),e.jsx("button",{onClick:()=>a("swagger"),className:`px-4 py-1.5 text-sm rounded-md transition-colors ${t==="swagger"?"bg-white shadow-sm text-slate-900":"text-slate-500 hover:text-slate-900"}`,children:"Try it"})]})]}),e.jsx("div",{className:"border-t border-slate-100",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"px-8 py-12 text-slate-400 text-sm",children:"Loading documentation…"}),children:t==="redoc"?e.jsx("div",{className:"redoc-host",children:e.jsx(d,{spec:i,options:{hideDownloadButton:!1,theme:{colors:{primary:{main:"#F01767"}},typography:{fontFamily:"'Open Sans', sans-serif",headings:{fontFamily:"Montserrat, sans-serif",fontWeight:"600"}},sidebar:{backgroundColor:"#FAFAFA"},rightPanel:{backgroundColor:"#1B1F2A"}}}})}):e.jsx("div",{className:"px-2 md:px-8 py-6 swagger-host",children:e.jsx(m,{spec:i})})})})]})})}export{x as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.