retrieve Two Factor Status With Id

GET {{baseUrl}}/api/two-factor/status/:twoFactorTrustId?userId=<string>&applicationId=<string>

Retrieve a user's two-factor status. This can be used to see if a user will need to complete a two-factor challenge to complete a login, and optionally identify the state of the two-factor trust across various applications.

Request Params

KeyDatatypeRequiredDescription
userIdstringThe user Id to retrieve the Two-Factor status.
applicationIdstringThe optional applicationId to verify.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;trusts&quot;:[{&quot;applicationId&quot;:&quot;\u003cuuid\u003e&quot;,&quot;expiration&quot;:&quot;\u003clong\u003e&quot;,&quot;startInstant&quot;:&quot;\u003clong\u003e&quot;},{&quot;applicationId&quot;:&quot;\u003cuuid\u003e&quot;,&quot;expiration&quot;:&quot;\u003clong\u003e&quot;,&quot;startInstant&quot;:&quot;\u003clong\u003e&quot;}],&quot;twoFactorTrustId&quot;:&quot;\u003cstring\u003e&quot;}