List expiry types with usage counts

posthttps://api.expiryedge.com/v1/getExpiryTypesWithStats
any role60/min
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/getExpiryTypesWithStats' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Antwort
[
  {
    "id": "et_5Gm1rT",
    "name": "Business License",
    "expiry_count": 12,
    "created_at": "2026-03-02T10:15:00.000Z",
    "email_template_id": "tmpl_7Qw2",
    "email_template_name": "Friendly license reminder",
    "email_template_missing": false,
    "email_template_active": true
  },
  {
    "id": "et_2Kd9wB",
    "name": "Insurance",
    "expiry_count": 7,
    "created_at": "2026-03-02T10:16:00.000Z",
    "email_template_id": null,
    "email_template_name": null,
    "email_template_missing": false,
    "email_template_active": false
  }
]

Returns every expiry type of the organization (unbounded) with its expiry count and email template override.

Rückgabe

200
Expiry types with counts.
  • idstringschreibgeschützt
  • namestring
  • expiry_countintegerschreibgeschützt
    Number of expiries whose type equals this name.
  • created_atstring
    UTC timestamp, ISO 8601. Every v1 response uses this form, never a raw Firestore Timestamp ({_seconds, _nanoseconds}).
    format: date-time
  • email_template_idstring | null
  • email_template_namestring | nullschreibgeschützt
  • email_template_missingbooleanschreibgeschützt
    True when the referenced template no longer exists (reminders use the default).
  • email_template_activebooleanschreibgeschützt
    True when the override is set, exists, and the plan allows it.

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.