POST
/v1/me/two-factor/recovery-codesA new set of recovery codes. The old ones stop working at once, wherever they were written down.
Request
curl -X POST https://api.proppertrading.com/v1/me/two-factor/recovery-codes \
-H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f" \
-H "Idempotency-Key: 5b7d9f1a-3c5e-4b8d-a0c2-4e6a8c0e2b4d"
No body.
Response
201, with the new codes in the shape of your recovery codes.
Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | two_factor_not_enabled | The account has no authenticator, so no codes |
| 403 | insufficient_scope | This device does not hold me:write |