Skip to main content
Version: API v1

Initiate a new MFA action

POST/mfa/actions/init/
v1
POST
initMfaAction

This resource can be used to initiate a new MFA action. The resulting token can be used to verify the MFA action.

Request

Responses

application/json

The process of activating Multi Factor Authentication is initialized. Now you have to confirm it

  • barcodestring
    required

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

  • urlstring
    required

    Same as barcode, but in URL form.\n,

Usage examples

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