curl --request GET \
--url https://api.example.com/v1/stats/pipeline{
"data": {
"stages": {},
"total": 123
}
}Get deal counts grouped by stage
curl --request GET \
--url https://api.example.com/v1/stats/pipeline{
"data": {
"stages": {},
"total": 123
}
}Authorization: Bearer wbk_your_api_key_here
curl https://data.leadlex.com/functions/v1/api-gateway/v1/stats/pipeline \
-H "Authorization: Bearer wbk_your_api_key_here"
{
"data": {
"stages": {
"Lead": 15,
"Proposal": 8,
"Negotiation": 4,
"Won": 12,
"Lost": 6
},
"total": 45
}
}
| Status | Code | Description |
|---|---|---|
| 403 | insufficient_permissions | Missing deals:read permission |