Check whether more expiries can be created
post
https://api.expiryedge.com/v1/checkExpiryLimitany role60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/checkExpiryLimit' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY"Antwort
{
"allowed": true,
"message": "You can create more expiries",
"current": 42,
"limit": 200,
"remaining": 158,
"planName": "StarterLite"
}Legacy check that counts open (not archived, not done) expiries against the plan. Prefer checkResourceLimit with resourceType: expiries. 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). |
