GET/auth/two-factor
Get two-factor authentication status
Operation auth.twoFactor.status
Description
Reports whether the signed-in identity has two-factor authentication turned on, how many unused recovery codes it has, and whether the calling session passed a second factor.
Authentication
Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.
Responses
200 OK
application/jsonTwoFactorStatusResponse
The signed-in identity's two-factor state and the calling session's standing.
4 fields
enabledbooleanrequiredrecoveryCodesRemainingintegerrequired- at least 0
requiredByOrganizationIdslist of stringrequired- each item: not empty
sessionVerifiedbooleanrequired
Other fields are allowed.
Other responses
| Status | Meaning | Body |
|---|---|---|
| 401 | Unauthorized |
|
| 500 | Internal Server Error |
|
| 503 | Service Unavailable |
|