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.
POST
user_id*user_idapplication/json- body
count?countFormat
int32Success
application/json- response
details?recoveryCodes?array<string>curl -X POST 'https://example.com/v2/users/string/recovery_codes' \ -H 'Content-Type: application/json' \ -d '{}'Example Response200
{ "details": { "sequence": 0, "changeDate": "2023-01-15T01:30:15.01Z", "resourceOwner": "string", "creationDate": "2023-01-15T01:30:15.01Z" }, "recoveryCodes": [ "string" ]}Was this page helpful?
