Try now New API BETA
Try out the new view and capabilities of the API documentation
Generates the setup TFA code for the current user.
This method doesn't have any parameters.
GET api/2.0/settings/tfaapp/setup Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json
Setup code