Log in users and handle MFA verification

Log in users to your account and handle Multi-Factor Authentication (MFA). This endpoint returns an ID that may be needed for subsequent calls to other API services, such as billing or domain management.

Headers

Accept Example
Content-Type Example

Body

required
application/json
username string required
password string required
rememberMe boolean required
rememberDevice boolean required
mfaCode string

Responses

200
success boolean
timestamp string
requestId string
data object
401
error string
message string
code string
timestamp string
requestId string
403
error string
message string
code string
timestamp string
requestId string
accountStatus string
POST https://cloud.hostup.se/api/login
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/login" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "string",
    "password": "string",
    "rememberMe": true,
    "rememberDevice": true,
    "mfaCode": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "requiresHostBillMFA": true,
    "language": "string",
    "shouldMigrateMFA": true
  }
}
Request Body
{
  "username": "string",
  "password": "string",
  "rememberMe": true,
  "rememberDevice": true,
  "mfaCode": "string"
}