Create one-time codes as an extra security measure, for example, if you lose access to your primary two-factor authentication. Save the generated codes securely as each code can only be used once. The endpoint also returns a unique ID required for certain follow-up API calls.
Accept Example Content-Type Example count integer required success boolean timestamp string requestId string data object https://cloud.hostup.se/api/mfa/backup-codes curl -X POST "https://cloud.hostup.se/api/mfa/backup-codes" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"count": 0
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"codes": [
"string"
],
"message": "string"
}
} {
"count": 0
}