Zum Hauptinhalt springen

Initialize Multi Factor Authentication. If successful, it needs to be confirmed, before usage of mfa

POST/users/self/credentials/init-mfa/
v2
POST
user-init-mfa

Request

Responses

application/json

The process of activating Multi Factor Authentication is initialized.

  • barcodestring
    required

    base64 encoded barcode content to scan from your mfa app. e.g. iVBORw0KGgoAAAANSUhEUgAAAMgAAADIEAAAAADYoy.... You can display it with <img src="data:image/png;base64,iVBORw0KGgoAAAANSUh.." />

  • urlstring
    required

    Same as barcode, but in URL form.

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/users/self/credentials/init-mfa