Initiate and configure two-factor authentication (2FA) for your account using a Time-based One-Time Password (TOTP). It generates a QR code and a manual entry key needed to add HostUp to your authenticator app. The endpoint returns a requestId for follow-up calls.
Accept Example Content-Type Example methodName 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 POST "https://cloud.hostup.se/api/mfa/setup/totp" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"methodName": "string"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"qrCode": "string",
"manualEntryKey": "string",
"label": "string",
"issuer": "string"
}
} {
"methodName": "string"
}