POST
/
api
/
user
/
mfa
/
totp
/
create-key
Generate a new TOTP MFA key
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/user/mfa/totp/create-key \
  --header 'x-api-key: <api-key>'
{
  "success": true,
  "error": "<string>",
  "key": "<string>",
  "url": "<string>"
}

Authorizations

x-api-key
string
header
required

Response

200 - application/json

OK

success
boolean
required

Whether the operation succeeded

key
string
required

Secret key (use SHA-1).

url
string
required

URL that will be converted into a QR code that can be scanned.

error
string

Optional error description (set if 'success' was false)