Complete the setup of Time-based Two-Factor Authentication (TOTP) with a one-time code. After scanning the QR code with your authenticator app and obtaining a code, submit it here to enable the method. The endpoint returns an ID needed for future reference or linking to other security settings.
Accept Example Content-Type Example token string required success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string https://cloud.hostup.se/api/mfa/setup/totp curl -X PUT "https://cloud.hostup.se/api/mfa/setup/totp" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"token": "string"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"method": {
"id": 0,
"name": "string",
"type": "string"
}
}
} {
"token": "string"
}