Platform API reference

Platform API · Me

post/v1/me/mfa/recovery-codesAuth

Replace the recovery codes

Needs step-up. Returns 10 new single-use codes; every previous code stops working. Not idempotent and takes no `Idempotency-Key`: the answer carries a secret (an authenticator seed, a ceremony challenge or recovery codes) that a replay cache must not hold.

Response · 200

recovery_codes*array

The new recovery codes (every previous code stops working). Shown once.

Example

Request

POST https://api.platform-auth.productcraft.co/v1/me/mfa/recovery-codes
Authorization: Bearer YOUR_TOKEN

Response

{
  "recovery_codes": [
    "string"
  ]
}