Pipeline statistics
/api/v2/stats/pipelinesReturns your pipeline funnel, how many contacts are in each stage, and how many deals were won and lost per day.
Changes compare with the period of the same length just before. They are null when that period had none, and percentages are not rounded.
Headers
x-api-keyheaderRequiredYour API key.
Content-Typeheaderapplication/json. Not needed for this request.
Query parameters
start_datestringFirst day, as
YYYY-MM-DD. Send both dates, or neither for all time.end_datestringLast day, as
YYYY-MM-DD. Included.timezonestringTime zone that decides when each day starts: an IANA name (
America/New_York) or an offset (+02:00). DefaultUTC.tag_namesstringTags to filter contacts by, comma-separated:
hot lead,vip. Needstag_filter_operator.tag_idsstringThe same with tag ids:
287,301.tag_filter_operatorstringany_of(any of the tags),is(all of them),is_not(none of them),is_empty(contacts without tags) oris_not_empty(contacts with any tag).date_propertystringcreated(default) counts contacts created in the period.pipeline_status_updatedcounts contacts whose stage changed in the period.
Errors
| Error | When |
|---|---|
400 | message is Validation failed and errors lists each query parameter that is not valid. |
401 | The API key is missing or wrong. |
500 | Something went wrong on our side, or timezone is not a time zone the API recognises. |
curl "https://app.dmtracker.ai/api/v2/stats/pipelines?start_date=2026-10-19&end_date=2026-10-21&timezone=America/New_York" \
-H "x-api-key: $DMTRACKER_API_KEY" \
-H "Content-Type: application/json"{
"status": "ok",
"data": {
"FUNNEL": {
"stages": [
{
"stage_name": "New Lead",
"stage_color": "#3B82F6",
"contact_count": 109,
"position": 1
},
{
"stage_name": "Outreach Sent",
"stage_color": "#FF6A00",
"contact_count": 71,
"position": 2
},
{
"stage_name": "In Conversation",
"stage_color": "#FF8A2E",
"contact_count": 43,
"position": 3
},
{
"stage_name": "Interested",
"stage_color": "#FFA040",
"contact_count": 25,
"position": 4
},
{
"stage_name": "Meeting Booked",
"stage_color": "#FFB340",
"contact_count": 15,
"position": 5
},
{
"stage_name": "Closed",
"stage_color": "#22C55E",
"contact_count": 9,
"position": 6
},
{
"stage_name": "Won",
"stage_color": "#16a34a",
"contact_count": 9,
"position": 2147483647
}
],
"all_stages": [
{
"id": "2b6f0e1a-8d3c-4f57-a1e9-5c7d9b3e0f42",
"stage_name": "New Lead",
"stage_color": "#3B82F6",
"position": 1,
"hidden_from_funnel_view": false
},
{
"id": "5a0c3e7b-9d21-4b6f-8e4a-7f1d2c9b0a56",
"stage_name": "Outreach Sent",
"stage_color": "#FF6A00",
"position": 2,
"hidden_from_funnel_view": false
},
{
"id": "9e4a7c21-6b0d-4e8f-b352-1a9c8d7e6f03",
"stage_name": "In Conversation",
"stage_color": "#FF8A2E",
"position": 3,
"hidden_from_funnel_view": false
},
{
"id": "c81f4b2d-0e6a-4d39-9b75-3e8a1f6c2d90",
"stage_name": "Interested",
"stage_color": "#FFA040",
"position": 4,
"hidden_from_funnel_view": false
},
{
"id": "1f7d9a3c-5e2b-4c80-a6f1-8b4e0d3c7a25",
"stage_name": "Meeting Booked",
"stage_color": "#FFB340",
"position": 5,
"hidden_from_funnel_view": false
},
{
"id": "6d2b8e4f-3a1c-4f7d-b9e0-5c6a2d8f1b74",
"stage_name": "Closed",
"stage_color": "#22C55E",
"position": 6,
"hidden_from_funnel_view": false
},
{
"id": "a4e0c6b8-2d7f-4a1e-8c35-9f0b6d4e2a18",
"stage_name": "Lost",
"stage_color": "#E63946",
"position": 7,
"hidden_from_funnel_view": true
}
]
},
"STAGE_METRICS": {
"stage_distribution": [
{
"stage_name": "New Lead",
"stage_color": "#3B82F6",
"contact_count": 40,
"position": 1
},
{
"stage_name": "Outreach Sent",
"stage_color": "#FF6A00",
"contact_count": 30,
"position": 2
},
{
"stage_name": "In Conversation",
"stage_color": "#FF8A2E",
"contact_count": 20,
"position": 3
},
{
"stage_name": "Interested",
"stage_color": "#FFA040",
"contact_count": 12,
"position": 4
},
{
"stage_name": "Meeting Booked",
"stage_color": "#FFB340",
"contact_count": 8,
"position": 5
},
{
"stage_name": "Closed",
"stage_color": "#22C55E",
"contact_count": 6,
"position": 6
},
{
"stage_name": "Lost",
"stage_color": "#E63946",
"contact_count": 4,
"position": 7
}
]
},
"WON_TREND": {
"total_won": 9,
"trend": [
{
"bucket_date": "2026-10-19",
"won_count": 3
},
{
"bucket_date": "2026-10-20",
"won_count": 2
},
{
"bucket_date": "2026-10-21",
"won_count": 4
}
],
"hourly": [],
"change_percent": 50
},
"LOST_TREND": {
"total_lost": 4,
"trend": [
{
"bucket_date": "2026-10-19",
"lost_count": 1
},
{
"bucket_date": "2026-10-20",
"lost_count": 2
},
{
"bucket_date": "2026-10-21",
"lost_count": 1
}
],
"hourly": [],
"change_percent": null
}
}
}