Get dashboard metric counts
post
https://api.expiryedge.com/v1/getExpiryMetricsany role500/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/getExpiryMetrics' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"selectedTeam": "0",
"futureDurationDays": 90
}'Response
{
"total": 142,
"completed": 38,
"expired": 4,
"archived": 11,
"active": 138,
"future": 27,
"upcomingThisMonth": 9,
"today": 1,
"notNotifying": 3
}Counts the organization's expiries per dashboard card. Computed over all records (no pagination).
selectedTeamstringTeam id;'0'or omitted = all teams.futureDurationDaysinteger or stringWindow in days for thefuturecount, orall.
200
Metric counts.
totalintegerNot done and not archived.completedintegerexpiredintegerPast expiry date, not done or archived.archivedintegeractiveintegerExpiry date today or later, not done or archived.futureintegerExpiry date after now and withinfutureDurationDays(all future when omitted).upcomingThisMonthintegertodayintegernotNotifyingintegerActive records with no queued reminder or no live contact.
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
404 | The record does not exist or is not in your organization. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
