Which factors the user has active
const url = 'https://api.replifier.com/v1/me/security';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.replifier.com/v1/me/securitySession only (an API key gets 403 api_key_not_allowed). Lets the dashboard show only the relevant action (enable or disable the authenticator app). Never exposes secrets, hashes or credential ids.
Responses
Section titled “Responses”Factor status
object
The authenticator app is active.
Registered passkeys. Never their ids or keys.
Unused recovery codes. Never the codes or their hashes.
First-factor window (72 h).
object
At least one organization of the user requires a second factor.
The window to register the first factor with a code session is open in all those organizations.
When the earliest one closes (ISO); null if no organization requires MFA. With open=false it can be a past date: it indicates when it closed, not that it is still open.
Example generated
{ "totpEnabled": true, "passkeyCount": 1, "recoveryCodesRemaining": 1, "firstFactorWindow": { "required": true, "open": true, "until": "example" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}