Only one recovery code generated while enrolling to mfa

I am using /mfa/associate api to enroll for otp based 2fa. The response has a recovery_codes array but only one code is there. Is there any way to generate few more codes (lets say 10) while enrolling?

Hi @raja.sk,

Thank you for reaching out to us!
Indeed, if this is the first time a user is associating an authenticator, there is a recovery_codes array listed in the response, as mentioned in this article.
However, a new recovery code can only be regenerated after deleting the existing one and creating a new one by making a post request to the Management Api as described in our documentation.

Best regards!
Remus

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.