Count expiries linked to contacts

posthttps://api.expiryedge.com/v1/getContactExpiryCounts
any role (admin, editor or viewer)60/minJede Methode
Anfrage
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"
  ]
}'
Antwort
{
  "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-Parameter

application/json
  • contactIdsarray of string or string

Rückgabe

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

Fehler

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.