Ask your coding assistant about the LMN API
If you build with Lovable, Cursor, Claude Code, Claude Desktop or another coding agent, you do not have to paste our docs into prompts or relay error messages to support. Your assistant can read this documentation itself:- Connect your tool to the LMN documentation connector (one URL, no account).
- Ask it a question — or paste a sanitized error (status code,
error.code,error.message,request_id; never your API key). - The assistant retrieves the relevant page from this site.
- It answers from the docs, or corrects the request it generated.
You need a sandbox key first. Sign up at console.lmnauto.com — work email and company name, auto-approved, key in hand in about five minutes. It carries a 1,000-call trial budget, which is enough to build and demo an integration but will not survive a page that polls on every render. See Quickstart.
What the connector is — and is not
The documentation connector is a public, read-only MCP server that searches and reads this site. Two things to know before you rely on it:- It needs no API key and never sees your account. It cannot read your partner account, production logs or orders, cannot run live API calls, and cannot place orders. It only reads published documentation.
- Want your team to search live inventory from an assistant instead? That is a different server, the Inventory assistant (MCP): it reads live listings with your API key.
- Discovery is not automatic or guaranteed. You must connect or enable the integration the way your tool supports it (below). Even when connected, the assistant chooses when to search — the instruction block further down tells it to check the docs before generating calls.
Connect the connector
Once connected, your AI gains a documentation search tool and a page-reading tool. Ask it anything about the API (“how does authentication work?”, “why did
source=dealer return 400?”) and it answers from the current published docs.
For filter combinations, production availability, and pagination examples, start with Partner vehicle search filters, then use the Vehicles reference for full parameter details.
Tell the assistant to use it
Paste this into your tool’s project instructions (Lovable: project Knowledge; Claude Code:CLAUDE.md; Cursor: Rules). It makes the assistant check the docs before generating calls and admit when the docs do not cover something:
Integrating from Lovable
Lovable generates frontend code and delegates everything server-side to a backend it provisions for you (Lovable Cloud, built on Supabase). Because the LMN API is server-to-server only, that backend is not optional — it’s where your API key lives and where the calls happen.1
Let Lovable create its backend
When Lovable asks you to connect Supabase (or enable Lovable Cloud), approve it. This is the step that makes a secure integration possible — if you skip it, Lovable cannot store your key or call our API, and the integration silently goes nowhere.
2
Add the LMN docs connector
In Lovable: Connectors → Chat connectors → New MCP server → paste
https://lmn.mintlify.app/mcp. Now Lovable reads our real endpoint contracts instead of inventing them.3
Store your API key as a secret
Add a Lovable secret named
LMN_API_KEY (Project Settings → Secrets) and paste your key there and only there. Start with your sandbox key (lmn_stg_*) against sandbox-api.lmnauto.com; switch the base URL and key to production (lmn_prd_*, api.lmnauto.com) once the page works. The prompts below assume the secret already exists — they never contain the key.4
Paste an integration prompt
Two prompts, depending on what you are building. The basic prompt renders inventory; the combined storefront prompt builds the auction + dealer page most partners actually want and follows the Combined inventory storefront guide.Basic — list and detail:Combined auction + dealer storefront:
5
Verify — against the checklist, not the screen
Auction cards rendering proves the auction request works. It proves nothing about dealer listings, pagination, or failure handling. Work through the integration acceptance checklist — it checks each source, each cursor, filter resets, and the failure state separately. If something fails, ask Lovable to show the backend function’s actual response (status,
error.code, request_id), then use Missing dealer listings and the error code matrix.IP allowlist: sandbox trial keys have no allowlist — Lovable Cloud, Supabase Edge Functions, and Vercel all work out of the box. Production keys are restricted to registered egress IPs (see Authentication), which serverless platforms with rotating pools cannot satisfy directly. Build and certify on sandbox, then use Request production access in the console and tell us you’re deploying serverless — we’ll plan the egress setup with you rather than leaving you to discover it at cutover.
Other AI coding tools
The same shape applies outside Lovable: connect the connector, storeLMN_API_KEY where your tool keeps secrets (a gitignored .env, the Replit Secrets pane, your platform’s secret manager), then paste the same prompts. For a Next.js app the backend is an API route or server component; for plain Node, any server process. Never put the key in code that ships to a browser.
If something doesn’t work
First ask your assistant to show you the real response — the HTTP status and the full error body — and to check Missing dealer listings and the error code matrix. Most first-run failures are a missingx-api-key header, a model filter without its parent make, or an auction-only filter sent to a dealer request.
If the docs do not resolve it, email partners@lmnauto.com (or message your LMN contact) with this template. It lets us find your exact call in our logs and tell “nothing arrived” from “arrived but rejected” in one look: