motzoSIGet API keys

Get car owners' repair requests into any system.

Owners show Motzo a photo of the problem. Motzo works out what's wrong and, when they say so, asks shops near them for quotes. Your shop, your shop software or your AI agent gets those requests and answers them, by whichever way fits.

Owners stay anonymous until they accept a quote. Motzo never makes phone calls.

Start in five minutes

  1. Sign in at motzo.online/partners and tell Motzo about your shop: services, where you work, how far you travel.
  2. Make a test key (mk_test_…). It works straight away with sample leads.
  3. Make a sample lead, quote it, then act as the owner and accept it. You've seen the whole flow.
  4. Once the Motzo team approves your shop, make a live key (mk_live_…) and real requests start.
curl -X POST https://api.motzo.online/v1/sandbox/leads -H "Authorization: Bearer mk_test_…"
curl https://api.motzo.online/v1/leads -H "Authorization: Bearer mk_test_…"
curl -X POST https://api.motzo.online/v1/leads/ld_…/quote -H "Authorization: Bearer mk_test_…" \
  -H "Content-Type: application/json" -d '{"total": 389, "earliest": "Tomorrow 9 AM"}'
curl -X POST https://api.motzo.online/v1/sandbox/leads/ld_…/accept -H "Authorization: Bearer mk_test_…"

REST API

Base address https://api.motzo.online/v1. Send your key as Authorization: Bearer mk_live_…. Answers are JSON; errors look like {"error": {"code", "message"}}. The full description is at openapi.json, for Postman, code generators and agents.

GET/meWho this key belongs to, status, limits
GET/leadsLeads sent to you, newest first. ?status= ?since= ?limit= ?cursor= ?format=csv
GET/leads/{id}One lead with photo links (1 hour). Marks it seen
POST/leads/{id}/quoteSend or update your quote
GET/leads/{id}/messagesThe conversation
POST/leads/{id}/messagesAsk the owner a question
POST/leads/{id}/declineSay you can't take it
GET/leads/{id}/contactOwner's name and phone, after they accept you
GET/webhooksYour webhooks and recent deliveries
POST/webhooksAdd one (secret shown once)
DELETE/webhooks/{id}Remove one
POST/webhooks/{id}/testSend a signed ping
POST/sandbox/leadsMake a sample lead (test keys)
POST/sandbox/leads/{id}/acceptAct as the owner accepting you (test keys)
DELETE/connectionTurn off this key (Disconnect)

A lead

{
  "id": "ld_8fK2mQ0aZ1xY7bTn", "object": "lead", "status": "new", "sandbox": false,
  "service": "glass", "job": "Windshield replacement: 10 inch crack from the lower driver's side",
  "vehicle": { "year": "2021", "make": "Toyota", "model": "RAV4", "trim": "XLE", "vin": null },
  "location": { "city": "San Jose", "zip": "95112", "area": "95112", "distance_miles": 4.2 },
  "timing": "As soon as possible", "insurance_claim": true,
  "diagnosis": { "readings": ["Crack about 10 inches...", "Camera behind the mirror: likely needs recalibration."] },
  "photo_count": 2, "language": "en",
  "questions": [{ "topic": "Price", "question": "..." }],
  "your_quote": null, "messages": [], "contact_available": false
}

A quote

POST /v1/leads/{id}/quote
{
  "total": 389, "parts_type": "OEM-equivalent", "earliest": "Tomorrow 9 AM", "mobile": true,
  "warranty": "Lifetime on workmanship", "notes": "Includes molding.",
  "answers": [{ "topic": "Safety systems", "answer": "Camera recalibration $150, not included." }]
}

Limits: 60 calls a minute and 5,000 a day per shop to start, which Motzo can raise (429 with Retry-After when over). Keys can be limited to leads:read, quotes:write and webhooks:manage, given an end date, and turned off any time.

Webhooks

Add an https address in the portal or with POST /v1/webhooks. Motzo sends a signed POST for each event, and tries 3 times (now, after 2 seconds, after 8 seconds). Answer with any 2xx within 8 seconds.

lead.createdAn owner sent you a request
lead.messageThe owner wrote to you
lead.cancelledThe owner no longer needs quotes
quote.acceptedThe owner picked you; get their contact now
quote.not_chosenThe owner picked another shop

Each delivery has Motzo-Event, Motzo-Event-Id (ignore repeats) and Motzo-Signature: t=…,v1=…, where v1 is the hex HMAC-SHA256 of t + "." + raw body made with your whsec_ secret. Check it before you trust the body:

// Node / Next.js
import { createHmac, timingSafeEqual } from "node:crypto";
const raw = await req.text();
const sig = Object.fromEntries(req.headers.get("motzo-signature").split(",").map((p) => p.split("=")));
const want = createHmac("sha256", process.env.MOTZO_WEBHOOK_SECRET).update(sig.t + "." + raw).digest();
const got = Buffer.from(sig.v1, "hex");
if (got.length !== want.length || !timingSafeEqual(got, want) || Math.abs(Date.now() / 1000 - sig.t) > 300) throw new Error("bad signature");
const event = JSON.parse(raw); // { id, type, created_at, mode, data: { lead } }
# Python
from motzo import verify_signature   # https://motzo.online/sdk/motzo.py
event = verify_signature(request.get_data(), request.headers["Motzo-Signature"], SECRET)

Pick the Slack format to post a short line in a Slack channel instead (use a Slack incoming-webhook address).

Connect with Motzo (for shop software)

Software that serves many shops, like motzo.shop, adds a Connect Motzo button. The shop signs in, checks its details and presses Allow; your software gets that shop's keys and a webhook, set up for it. This is standard OAuth 2.0 (authorization code, PKCE supported).

  1. Ask partners@motzo.si to register your software. You get a client_id and client_secret.
  2. Send the shop to https://motzo.online/connect?client_id=…&redirect_uri=…&scope=leads:read quotes:write webhooks:manage&state=…&code_challenge=…&code_challenge_method=S256. Add name, city, region, zip, phone, website and services to prefill the form.
  3. Motzo sends the shop back to redirect_uri with ?code=…&state=… (or ?error=access_denied).
  4. Exchange the code from your server within 10 minutes:
POST https://api.motzo.online/oauth/token
grant_type=authorization_code&code=…&redirect_uri=…&client_id=…&client_secret=…&code_verifier=…
&webhook_url=https://your.app/webhooks/motzo/SHOP&webhook_events=lead.created quote.accepted

→ { "access_token": "mk_live_…", "test_access_token": "mk_test_…", "token_type": "Bearer",
    "partner": { "id": "pt_…", "status": "pending" },
    "webhook": { "id": "wh_…", "secret": "whsec_…" }, "api_base": "https://api.motzo.online/v1" }

The access token is an ordinary Motzo key: use the API above with it. DELETE /v1/connection is the Disconnect button.

motzo.shop

motzo.shop connects exactly this way, with no private shortcut: Connect Motzo in its settings, Motzo requests land in its New Leads, and quotes sent there reach the owner's app. Its step-by-step build guide is in this project's repository at docs/CONNECT-MOTZO-SHOP.md.

MCP server for AI agents

Motzo speaks the Model Context Protocol at https://mcp.motzo.online (streamable HTTP). Tools: whoami, list_leads, get_lead, send_quote, message_owner, decline_lead, get_contact, create_sample_lead, accept_sample_quote, list_webhooks, add_webhook and remove_webhook, plus a ready-made prompt, work_new_leads. Each tool only does what the key allows, and whoami tells the agent what to do next.

No key needed to start. In apps that sign in to MCP servers (Claude's custom connectors, ChatGPT, Cursor, VS Code and others), add https://mcp.motzo.online as a connector. The app opens motzo.online, the shop signs in with Google and presses Allow, and the agent gets the shop's key on its own. It works by standard OAuth: protected resource metadata, authorization server metadata at https://api.motzo.online/.well-known/oauth-authorization-server, dynamic client registration and PKCE. Live leads start once Motzo approves the shop.

# Claude Code, signing in
claude mcp add --transport http motzo https://mcp.motzo.online

# Claude Code, with a key
claude mcp add --transport http motzo https://mcp.motzo.online --header "Authorization: Bearer mk_test_…"

# Claude Desktop, Cursor, Windsurf and others (mcp.json / settings)
{
  "mcpServers": {
    "motzo": { "type": "http", "url": "https://mcp.motzo.online",
               "headers": { "Authorization": "Bearer mk_test_…" } }
  }
}

Agents that read the web can also start from llms.txt or the agent card at /.well-known/agent-card.json.

CLI and SDKs

One file each, nothing to install.

# CLI (Node 18+)
curl -fsSLo motzo.mjs https://motzo.online/cli/motzo.mjs
node motzo.mjs login
node motzo.mjs sample --service glass
node motzo.mjs leads
node motzo.mjs quote ld_… --total 389 --earliest "Tomorrow 9 AM"
node motzo.mjs watch            # prints new leads as they arrive
// JavaScript / TypeScript: https://motzo.online/sdk/motzo.js
import { Motzo } from "./motzo.js";
const motzo = new Motzo(process.env.MOTZO_API_KEY);
for await (const lead of motzo.leads.all({ status: "new" })) {
  await motzo.leads.quote(lead.id, { total: 389, earliest: "Tomorrow 9 AM" });
}
# Python: https://motzo.online/sdk/motzo.py
from motzo import Motzo
motzo = Motzo(os.environ["MOTZO_API_KEY"])
for lead in motzo.all_leads(status="new"):
    motzo.send_quote(lead["id"], total=389, earliest="Tomorrow 9 AM")

No-code: Zapier, Make, n8n, Sheets

  • New lead → anything: make a "Catch hook" (Zapier), "Custom webhook" (Make) or "Webhook" node (n8n), copy its address, and add it as a Motzo webhook with the lead.created event.
  • Send a quote back: use the HTTP / Webhooks action: POST https://api.motzo.online/v1/leads/{id}/quote with the header Authorization: Bearer mk_live_… and a JSON body.
  • Slack: add a Slack incoming-webhook address as a Motzo webhook and pick the Slack format.
  • Spreadsheet: download leads as CSV from the portal, or GET /v1/leads?format=csv.

Website button

Partner shops can put a button on their own site. Owners land on Motzo with your shop already picked.

<script src="https://motzo.online/widget.js" data-shop="pt_YOURID" async></script>

What you get, and what you don't

  • A lead has the job, the vehicle, the city or ZIP, how far away it is, Motzo's photo readings and photo links. Never the owner's name, phone, email, street or plate.
  • The owner's name and phone (and email or insurance, if they choose) go only to the shop they accept, through GET /v1/leads/{id}/contact.
  • Use what owners share only to quote and do the job they asked for. Don't add owners to marketing lists.
  • Keep keys and webhook secrets on your server. If one leaks, turn it off in the portal and make a new one.

The full rules are in the partner terms. Questions: partners@motzo.si