Count expiries linked to contacts

posthttps://api.expiryedge.com/v1/getContactExpiryCounts
any 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: {}}.

Body parameters

application/json
  • contactIdsarray of string or string

Returns

200
Map of contact id to linked expiry count.
  • countsmap of integerrequired
    Contact id -> number of expiries listing it in contacts.

Errors

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.