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

Deals

Manage sales deals and opportunities. Use action=“create” to record a new deal. Use action=“update” to modify a deal. Use action=“list” to search deals. Use action=“delete” to remove a deal record.

Input Schema

ParameterTypeDescription
actionstringAction to perform on deals. Enum: create, list, update, delete
deal_idstringDeal UUID (required for update/delete)
site_idstringSite UUID
namestringDeal name (required for create)
amountnumberDeal amount
currencystringCurrency code (e.g. USD)
stagestringDeal stage in the sales pipeline (e.g. prospecting, proposal, negotiation, closed_won)
statusstringOverall deal status (e.g. open, won, lost)
company_idstringCompany UUID
expected_close_datestringDate string for expected close (YYYY-MM-DD)
notesstringDeal notes
qualification_scorenumberQualification score
qualification_criteriaobjectJSON object with qualification specifics
sales_order_idstringRelated Sale/Order UUID if closed
lead_idsarrayArray of Lead UUIDs attached to this deal
owner_idsarrayArray of User UUIDs who own this deal
limitnumberLimit results
offsetnumberOffset results

REST Endpoint

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

POST /api/agents/tools/deals/create GET /api/agents/tools/deals/get POST /api/agents/tools/deals/update POST /api/agents/tools/deals/delete
POST /api/agents/tools/deals/create Authorization: Bearer YOUR_API_KEY Content-Type: application/json { "site_id": "YOUR_SITE_ID", "name": "Acme Corp Q3 Renewal", "amount": 10000, "currency": "USD", "stage": "proposal", "status": "open" }

Response:

{ "success": true, "deal": { "id": "...", "name": "Acme Corp Q3 Renewal", "amount": 10000, "stage": "proposal" } }
Last updated on