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

Leads

Manage leads. Use action=“create” to create a new lead (requires name, email). Use action=“update” to update an existing lead (requires lead_id). Use action=“list” to get leads with filters. Use action=“qualify” to change status (requires status). Use action=“identify” to identify a visitor (requires visitor_id).

Input Schema

ParameterTypeDescription
actionstringAction to perform on leads. Enum: create, list, update, qualify, identify
lead_idstringLead UUID
namestringLead full name
emailstringEmail address
phonestringPhone number
positionstringJob title/position
companystringCompany name
notesstringNotes
statusstringnew, contacted, qualified, converted, lost
originstringLead source (e.g. website, referral)
segment_idstringSegment UUID
campaign_idstringCampaign UUID
assignee_idstringAssignee user UUID
site_idstringFilter by site UUID
user_idstringFilter by user UUID
searchstringText search in name, email, notes
limitnumberMax results (default 50)
offsetnumberPagination offset
sort_bystringField to sort by
sort_orderstringSort order. Enum: asc, desc
visitor_idstringVisitor UUID
lead_scorenumberScore 1-100
sourcestringLead source
contact_infoobjectContact details
company_infoobjectCompany details
interest_levelstringInterest level
product_intereststringProduct interest
pages_visitedarrayPages visited
time_spentnumberTime spent
visit_countnumberVisit count

REST Endpoint

Actions map to sub-routes: create/create, list/get, update/update, qualify/qualify, identify/identify.

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 /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" }

Response:

{ "success": true, "lead": { "id": "...", "name": "Jane Smith", "email": "jane@example.com" } }
Last updated on