Check whether more contacts can be created
post
https://api.expiryedge.com/v1/checkContactLimitany role60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/checkContactLimit' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY"Response
{
"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.
200
Limit check.
allowed is false (still 200) when the limit is reached; remaining is omitted then.allowedbooleanmessagestringcurrentintegerlimitinteger | nullnull when unlimited.remaininginteger or stringplanNamestring
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). |
