GET /leads: list leads
Newest first, in pages of up to 100. You see only the leads the member behind the key may see.
Newest first, in pages of up to 100. You see only the leads the member behind the key may see.
| Method | Address | Needs |
|---|---|---|
| GET | /v1/api/leads | leads.view |
Query parameters
| Name | Type | Description |
|---|---|---|
| search | string | Name, phone or email (2 or more characters). |
| stageId | uuid | Only leads in this stage. |
| sourceId, productId | uuid | Only leads from this source, or for this course. |
| owner | "me", "unassigned" or uuid | Whose leads. |
| priority | HOT | WARM | COLD | Only this priority. |
| createdFrom, createdTo | ISO date-time | Added in this window. Use createdFrom to fetch only new leads. |
| followUpFrom, followUpTo | ISO date-time | Follow-up due in this window (soonest first). |
| page, pageSize | number | Page from 1; 1 to 100 per page, default 20. |
| sortOrder | asc | desc | Default desc (newest first). |
- Counting stops at 10,000: when
meta.totalCappedis true, the total is “10,000 or more”. Narrow with a filter.
Example request
curl "https://api.crm.thevisionsage.com/v1/api/leads?search=Priya&pageSize=20" \
-H "Authorization: Bearer vsa_YOUR_API_KEY"Example response
{
"success": true,
"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"
}
],
"meta": {
"total": 1,
"page": 1,
"limit": 20,
"totalPages": 1,
"totalCapped": false
}
}Read next
Something missing or unclear? Tell us and we will fix this page.