GenerateRecoveryCodes
Generate single-use recovery codes for a user
Generate new single-use recovery codes for the authenticated user. Recovery codes can be used to recover access to the account if other second factors are not available.
Path Parameters
user_id*string
Request Body
application/json
count?integer
Format
int32[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://loading/v2/users/string/recovery_codes" \ -H "Content-Type: application/json" \ -d '{}'{
"details": {
"sequence": 0,
"changeDate": "1s",
"resourceOwner": "string",
"creationDate": "1s"
},
"recoveryCodes": [
"string"
]
}{
"code": "not_found",
"message": "string",
"detail": {
"type": "string",
"value": "string",
"debug": {}
}
}Was this page helpful?