POST /leads: add a lead

Adds one lead. Send a phone or an email (or both). The lead starts in the default stage unless you pick one.

Adds one lead. Send a phone or an email (or both). The lead starts in the default stage unless you pick one.

MethodAddressNeeds
POST/v1/api/leadsleads.create

Body (JSON)

NameTypeDescription
namestringFull name, 2 to 120 characters.
phonestringWith or without the country code, e.g. 9876500001.
emailstringEmail address.
whatsappstringWhatsApp number, if different from the phone.
alternatePhonestringA second number.
city, statestringLocation.
priorityHOT | WARM | COLDHow warm the lead is.
tagsstring[]Up to 10 short tags.
expectedValuenumberWorth, in rupees.
stageIduuidFrom GET /stages. Left out on create: the default stage.
sourceId, productIduuid or nullFrom GET /sources and GET /products.
ownerId"auto", uuid or null"auto" lets your assignment rules choose; null leaves it unassigned. Left out on create: the member the key acts as.
nextFollowUpAtISO date-time or nulle.g. 2026-10-20T10:30:00+05:30.
customFieldsobjectYour own fields by key, e.g. { "qualification": "B.Tech" }.
notestringSaved as the lead's first note.
  • Adding does not check for duplicates by itself. Call GET /leads/duplicates first, or turn on unique phone / email in Lead settings so a repeat is refused with 409.
  • A name is required, and one of phone or email.

Example request

curl -X POST "https://api.crm.thevisionsage.com/v1/api/leads" \
  -H "Authorization: Bearer vsa_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Priya Sharma",
  "phone": "9876500001",
  "email": "priya@example.com",
  "city": "Chennai",
  "note": "Asked about the weekend batch"
}'

Example response

{
  "success": true,
  "message": "Lead added.",
  "data": {
    "id": "01a147f9-6d70-7000-8b7d-808b3dce7f7c",
    "name": "Priya Sharma",
    "email": "priya@example.com",
    "phone": "9876500001",
    "whatsapp": null,
    "alternatePhone": null,
    "city": "Chennai",
    "state": "Tamil Nadu",
    "priority": "WARM",
    "tags": [
      "weekend-batch"
    ],
    "expectedValue": 45000,
    "doNotCall": false,
    "doNotEmail": false,
    "customFields": {},
    "stage": {
      "id": "01a147f9-6d27-7000-a5a9-318c85c28176",
      "name": "New",
      "color": "blue",
      "category": "NEW"
    },
    "source": {
      "id": "01a147f9-6d27-701d-9dac-ff4c718ab99a",
      "name": "Google Ads"
    },
    "product": {
      "id": "01a147f9-6d27-7030-a111-0a5b5f1c0001",
      "name": "Data Science"
    },
    "owner": {
      "id": "01a147f9-6d26-7000-9981-c1af9ae45fc1",
      "name": "Asha Admin",
      "email": "asha@example.com"
    },
    "nextFollowUpAt": null,
    "returnedAt": null,
    "stageChangedAt": "2026-10-17T03:48:11.247Z",
    "closedAt": null,
    "enquiryCount": 1,
    "createdAt": "2026-10-17T03:48:11.247Z",
    "updatedAt": "2026-10-17T03:48:11.248Z"
  }
}

Something missing or unclear? Tell us and we will fix this page.