API referenceMfa

Start setting up an authenticator

Generate a secret. This does **not** switch the factor on. Nothing is protected until `/mfa/activate` has seen a code derived from this secret. That order is deliberate: a QR code can be mis-scanned or scanned into nothing, and switching on a factor the member's app cannot actually produce locks them out of their own account.

POST
/api/b/v1/mfa/enrol

Generate a secret. This does not switch the factor on.

Nothing is protected until /mfa/activate has seen a code derived from this secret. That order is deliberate: a QR code can be mis-scanned or scanned into nothing, and switching on a factor the member's app cannot actually produce locks them out of their own account.

Authorization

OAuth2PasswordBearer
AuthorizationBearer <token>

In: header

admin_access_token?string|null

Response Body

application/json

application/json

curl -X POST "https://example.com/api/b/v1/mfa/enrol"
{  "secret": "string",  "provisioning_uri": "string"}