Count expiries linked to contacts
post
https://api.expiryedge.com/v1/getContactExpiryCountsany role (admin, editor or viewer)60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/getContactExpiryCounts' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contactIds": [
"c_8Hk2pQ",
"c_3Rm7vN"
]
}'Response
{
"counts": {
"c_8Hk2pQ": 12,
"c_3Rm7vN": 0
}
}For each contact id (first 100 used), counts the expiries whose contacts list contains it. contactIds may be
an array or a comma-separated string; a GET with ?contactIds=a,b also works. Empty input returns {counts: {}}.
contactIdsarray of string or string
200
Map of contact id to linked expiry count.
countsmap of integerrequiredContact id -> number of expiries listing it incontacts.
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
