/v1/apps/{app_id}/unverified-account-expiryAuthGet the unverified-account expiry setting and how many accounts it deleted in the last 30 days.
Path parameters
app_id*stringId of the app.
Response · 200
ttl_days*numberThe app's `unverified_account_ttl_days` (null = expiry is off).
Example: 7
deleted_last_30_days*numberAccounts 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_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
const unverifiedAccountExpiryStatus = await auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").unverifiedAccountExpiry.retrieve();auth.admin.app(…).unverifiedAccountExpiry.retrieve(options?): Auth.UnverifiedAccountExpiryStatus
Response
{
"ttl_days": 7,
"deleted_last_30_days": 3
}