I am using a two-factor API to enable two factor. API working fine in another server. for the production server it was working fine but currently, it's stopped working. I don't understand why it stopped working. I also check API permission and API key it's all are correct.
I used the post method for the below API.
api/user/two-factor/