Skip to main content
POST
/
users
/
{user_id}
/
codes
Re-create recovery codes
curl --request POST \
  --url {schemes}://api.upsun.com/users/{user_id}/codes \
  --header 'Authorization: Bearer <token>'
{
  "recovery_codes": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

user_id
string<uuid>
required

The ID of the user.

Example:

"d81c8ee2-44b3-429f-b944-a33ad7437690"

Response

Created

recovery_codes
string[]

A list of recovery codes for the MFA enrollment.