Send a verification code for Google authentication

Send a two-factor authentication (MFA) code via email when a user attempts to log in or perform a sensitive action. The code is sent to the registered email address and is necessary to complete the login or action. The endpoint returns a 'requestId' to track the request in subsequent calls.

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/google/send-mfa
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/google/send-mfa" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "email": "string",
    "message": "string"
  }
}