This will give basic details about a user's 2fa status. This will include when it was enabled and their 2fa token. You can use this endpoint 10 times per second.
Path Parameters
Name
Type
Description
token
string
This is your API token.
uuid
string
This is the UUID of the user from who you are getting details.
Enable 2fa for provided user. It will return a QR code data URI and the 2fa token (Not to be confused with an access token or MFA token) that can be used to calculate the time-based pin. This endpoint can be used 2 times per second.
Path Parameters
Name
Type
Description
token
string
This is your API token.
uuid
string
The UUID of the user who is having 2fa enabled.
Request Body
Name
Type
Description
issuer
string
This is the name that will show in the user's 2FA app.
"issuer" will default to "Accountable" if not set.
This endpoint takes an MFA token (which should have been assigned at login) and a 6 digit pin provided by the user. It will return telling you if the details match!
Path Parameters
Name
Type
Description
token
string
This is your API token.
Request Body
Name
Type
Description
token
string
This is the MFA token of the user who is authenticating.
code
string
This is the 6 digit code they entered.
The MFA token is the token that is returned after authenticating the username and password, not the user's 2fa token that is returned when enabling 2fa.