Auth API reference

Auth API · Consumer-Mfa

post/{app_slug}/v1/me/mfa/recovery-codes/regenerateAuth

Regenerate the recovery-code set

Mints a fresh set of single-use recovery codes and invalidates every prior code for the account. The new codes are returned once — store them now.

Path parameters

app_slug*string

Slug of the app.

Response · 200

recovery_codes*array

New single-use recovery codes. Returned once; any earlier set is invalidated. Store them now.

Example

Request

POST https://api.auth.productcraft.co/{app_slug}/v1/me/mfa/recovery-codes/regenerate
Authorization: Bearer YOUR_TOKEN

Response

{
  "recovery_codes": [
    "string"
  ]
}