Set up a YubiKey for two-factor authentication

Add and configure a YubiKey as a two-factor authentication (MFA) method for your account. This increases security by requiring a physical YubiKey in addition to your password for login.

Headers

Accept Example
Content-Type Example

Body

required
application/json
otp string required
methodName string required

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/mfa/setup/yubikey
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/mfa/setup/yubikey" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "otp": "string",
    "methodName": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "method": {
      "id": 0,
      "name": "string",
      "type": "string",
      "publicId": "string"
    }
  }
}
Request Body
{
  "otp": "string",
  "methodName": "string"
}