Tearleads

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
  • enabledbooleanrequired
  • recoveryCodesRemainingintegerrequired
    • at least 0
  • requiredByOrganizationIdslist of stringrequired
    • each item: not empty
  • sessionVerifiedbooleanrequired

Other fields are allowed.

Other responses

StatusMeaningBody
401Unauthorized

application/jsonSessionFailureResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse