{
  "opencollection": "1.0.0",
  "info": {
    "name": "Mist Admins Self MFA API",
    "version": "2604.1.1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Self MFA",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "generateSecretFor2faVerification",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/self/two_factor/token",
            "params": [
              {
                "name": "by",
                "value": "",
                "type": "query",
                "description": "If `by`==`qrcode`, returns the secret as a qrcode image"
              }
            ]
          },
          "docs": "Generate Secret Key for 2FA verification"
        },
        {
          "info": {
            "name": "verifyTwoFactor",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.mist.com/api/v1/self/two_factor/verify",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Verify Two-factor (OTP)\n\nTo verify two-factor authentication by using a code generated by app (e.g. Google Authenticator, Authy). Upon successful verification, the `two_factor_passed` will be set to true if it hasn’t already been.\n"
        }
      ]
    }
  ],
  "bundled": true
}