Set TOTP MFA key

Set TOTP MFA key

post

Enable MFA on this account using an TOTP token. First create a new key via userGenerateNewTotpMfaKey.

Authorizations
Body
keystringRequired

Secret key obtained through userGenerateNewMfaKey.

totpTokenstringRequired

TOTP token that is valid for the key (to ensure the device is configured correctly)

Responses
200
OK
application/json
Responseall of
post
POST /v1/api/user/mfa/totp/set-key HTTP/1.1
Host: studio.edgeimpulse.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 33

{
  "key": "text",
  "totpToken": "text"
}
200

OK

{
  "success": true,
  "error": "text",
  "recoveryCodes": [
    "text"
  ]
}

Last updated

Was this helpful?