Check whether more contacts can be created

posthttps://api.expiryedge.com/v1/checkContactLimit
any role60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/checkContactLimit' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Antwort
{
  "allowed": false,
  "message": "You have reached your subscription limit of 50 contacts. Please upgrade your plan to add more.",
  "current": 50,
  "limit": 50,
  "planName": "StarterLite"
}

Legacy check that counts contacts against the plan. Prefer checkResourceLimit with resourceType: contacts. Token failures return 500 (not 401) with allowed: false.

Rückgabe

200
Limit check. allowed is false (still 200) when the limit is reached; remaining is omitted then.
  • allowedboolean
  • messagestring
  • currentinteger
  • limitinteger | null
    null when unlimited.
  • remaininginteger or string
  • planNamestring

Fehler

401
Missing, expired or invalid bearer token.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
The check failed (including an invalid or missing token).