Auth API reference

Auth API · End-Users

get/v1/apps/{app_id}/unverified-account-expiryAuth

Get the unverified-account expiry setting and how many accounts it deleted in the last 30 days.

Path parameters

app_id*string

Id of the app.

Response · 200

ttl_days*number

The app's `unverified_account_ttl_days` (null = expiry is off).

Example: 7

deleted_last_30_days*number

Accounts this app's expiry deleted in the last 30 days (from the audit log).

Example: 3

Example

Request

GET https://api.auth.productcraft.co/v1/apps/{app_id}/unverified-account-expiry
Authorization: Bearer YOUR_TOKEN

Response

{
  "ttl_days": 7,
  "deleted_last_30_days": 3
}