Get Backup Code Status
GET
/web/v1/users/self/security/mfa/backup-codesJWTRetrieves the status of the user's backup codes, including the remaining count. Does not return the actual backup codes.
Authentication
Auth Chain: WEB Chain — requires
Authorization: Bearer <jwt>These headers are injected by the system (frontend does nothing):X-PORTAL-ACCESS-CODE(Nginx),X-Request-Id(Gateway)
Request Parameters
No request parameters required.
Success Response
Success200
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"remainingCount": 8,
"totalCount": 10
}
}Error Responses
Unauthorized401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Notes
- Returns only the count of remaining codes, not the codes themselves.
- Total count is the number originally generated (default 10).