Skip to content
Guides

Generate new recovery codes

Replaces every recovery code with a fresh set. The previous codes stop working immediately. The action requires a current authenticator or recovery code.

POST/v1/users/me/two-factor/recovery-codes

Replaces every recovery code with a fresh set. The previous codes stop working immediately. The action requires a current authenticator or recovery code.

Authorization

bearerAuth
AuthorizationBearer <token>

OAuth2 access token issued by Ecomiq Auth.

In: header

Header Parameters

Authorization*string

OAuth 2.0 bearer token.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/users/me/two-factor/recovery-codes" \  -H "Authorization: Bearer <token>"
{  "recoveryCodes": [    "example"  ]}