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.
| Method | Address | Needs |
|---|---|---|
| POST | /v1/api/leads | leads.create |
Body (JSON)
| Name | Type | Description |
|---|---|---|
| name | string | Full name, 2 to 120 characters. |
| phone | string | With or without the country code, e.g. 9876500001. |
| string | Email address. | |
| string | WhatsApp number, if different from the phone. | |
| alternatePhone | string | A second number. |
| city, state | string | Location. |
| priority | HOT | WARM | COLD | How warm the lead is. |
| tags | string[] | Up to 10 short tags. |
| expectedValue | number | Worth, in rupees. |
| stageId | uuid | From GET /stages. Left out on create: the default stage. |
| sourceId, productId | uuid or null | From 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. |
| nextFollowUpAt | ISO date-time or null | e.g. 2026-10-20T10:30:00+05:30. |
| customFields | object | Your own fields by key, e.g. { "qualification": "B.Tech" }. |
| note | string | Saved as the lead's first note. |
- Adding does not check for duplicates by itself. Call
GET /leads/duplicatesfirst, 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"
}
}Read next
Something missing or unclear? Tell us and we will fix this page.