Enable Time-based Two-Factor Authentication (TOTP) for your account

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.

Headers

Accept Example
Content-Type Example

Body

required
application/json
token string required

Responses

200
success boolean
timestamp string
requestId string
data object
400
error string
message string
code string
timestamp string
requestId string
PUT https://cloud.hostup.se/api/mfa/setup/totp
For AI assistants
cURL
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"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "method": {
      "id": 0,
      "name": "string",
      "type": "string"
    }
  }
}
Request Body
{
  "token": "string"
}