Skip to main content
GET
/
api
/
v1
/
auth
/
2fa
/
status
2FA status (and enrollment info if disabled)
curl --request GET \
  --url https://api.flowxi.app/api/v1/auth/2fa/status \
  --header 'Authorization: Bearer <token>'
{
"code": "TWOFA_STATUS",
"message": "2FA is enabled.",
"enabled": true,
"email": "[email protected]",
"secret": null,
"otpauth_uri": null,
"issuer": "Flowxi"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

OK

code
string
required
Example:

"OK"

message
string
required
Example:

"OK"

enabled
boolean
required
Example:

false

email
string<email>
required
secret
string | null
required
Example:

"BASE32SECRET..."

otpauth_uri
string | null
required
Example:

"otpauth://totp/Flowxi:[email protected]?secret=BASE32SECRET&issuer=Flowxi"

issuer
string
required
Example:

"Flowxi"

expires_in
integer | null
Example:

600