Skip to content

Which factors the user has active

GET
/v1/me/security
curl --request GET \
--url https://api.replifier.com/v1/me/security

Session 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.

Factor status

Media typeapplication/json
object
totpEnabled
required

The authenticator app is active.

boolean
passkeyCount
required

Registered passkeys. Never their ids or keys.

integer
recoveryCodesRemaining
required

Unused recovery codes. Never the codes or their hashes.

integer
firstFactorWindow
required

First-factor window (72 h).

object
required
required

At least one organization of the user requires a second factor.

boolean
open
required

The window to register the first factor with a code session is open in all those organizations.

boolean
until
required

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.

string
nullable

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

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}