CRM API

Create, list, update and convert leads, and manage deals.

  • Reference
  • 2 min read
  • Updated 13 November 2026
View as Markdown

All CRM endpoints are under /api/crm and need the Authorization and X-Organization-Id headers. Lists return arrays.

#Leads

#Create a lead

Request
curl -X POST https://api.aozo.in/api/crm/leads \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-Organization-Id: $ORG" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Sharma Traders", "company": "Sharma Traders", "source": "WEB", "value": 48500 }'
Response, 201 (some fields omitted)
{
  "id": 148,
  "name": "Sharma Traders",
  "company": "Sharma Traders",
  "status": "NEW",
  "source": "WEB",
  "value": 48500,
  "probability": 10,
  "score": 25,
  "createdAt": "2026-11-13T09:30:00.000Z"
}

AOZO calculates the lead’s score and probability for you from its status, value and source.

#Update a lead

Send any of the create fields to PUT /api/crm/leads/:id. If your CRM settings require a lost reason, include lostReason when you set status to LOST.

#Convert a lead

Body for POST /api/crm/leads/:id/convert
{ "createDeal": true, "createContact": true, "dealTitle": "Sharma Traders: annual plan", "dealAmount": 48500 }

#Deals

#Other CRM resources

These live under /api/crm as well: contacts, companies, tasks, partners, workflows, templates, targets, custom-fields, import and settings.