Skip to Content
The Makinari API repo now includes an MCP Server — connect your AI models directly. View on GitHub →
MCPCRM & sales

CRM & sales tools

MCP names: leads, deals, tasks. Same contracts as POST /api/agents/tools/<tool>/<action>.

Auth: Authorization: Bearer YOUR_API_KEY. Always send site_id on REST.

leads

Actions: create (needs name, email) · list · update (needs lead_id) · qualify (needs status) · identify (needs visitor_id).

ParameterTypeNotes
actionstringcreate, list, update, qualify, identify
lead_idstringRequired for update / qualify
name, emailstringRequired for create
phone, position, company, notesstring
statusstringnew, contacted, qualified, converted, lost
origin, sourcestringHow the lead arrived
segment_id, campaign_id, assignee_idstringUUIDs
searchstringName, email, notes
limit, offsetnumberDefault limit 50
sort_by, sort_orderstringasc / desc
visitor_idstringFor identify
lead_scorenumber1–100
POST /api/agents/tools/leads/create POST /api/agents/tools/leads/get POST /api/agents/tools/leads/update POST /api/agents/tools/leads/qualify POST /api/agents/tools/leads/identify
POST https://backend.makinari.com/api/agents/tools/leads/create Authorization: Bearer YOUR_API_KEY Content-Type: application/json { "site_id": "YOUR_SITE_ID", "name": "Jane Smith", "email": "jane@example.com", "company": "Acme Corp", "status": "new" }
{ "success": true, "lead": { "id": "...", "name": "Jane Smith", "email": "jane@example.com" } }

deals

Actions: create (needs name) · list · update / delete (need deal_id).

ParameterTypeNotes
actionstringcreate, list, update, delete
deal_idstringRequired for update / delete
name, amount, currencyCurrency e.g. USD
stagestringprospecting, proposal, negotiation, closed_won
statusstringopen, won, lost
company_id, sales_order_idstring
lead_ids, owner_idsarrayUUIDs
expected_close_datestringYYYY-MM-DD
POST /api/agents/tools/deals/create GET /api/agents/tools/deals/get POST /api/agents/tools/deals/update POST /api/agents/tools/deals/delete

tasks

Actions: create (needs title, type, lead_id) · list · update (needs task_id).

type: website_visit, demo, meeting, email, call, quote, contract, payment, referral, feedback.
status: pending, in_progress, completed, failed.

POST /api/agents/tools/tasks/create POST /api/agents/tools/tasks/get POST /api/agents/tools/tasks/update
POST https://backend.makinari.com/api/agents/tools/tasks/create Authorization: Bearer YOUR_API_KEY Content-Type: application/json { "site_id": "YOUR_SITE_ID", "title": "Schedule product demo", "type": "demo", "lead_id": "LEAD_UUID", "status": "pending", "scheduled_date": "2026-03-15T10:00:00Z" }
Last updated on