Unable to use get app password feature

I am unable to use the app password feature to login into the application.

I am using thee following request.

curl -u username:password -H ‘OCS-APIRequest: true’ https://cloud.example.com/ocs/v2.php/core/getapppassword

Also, it is not clear from the documentation as to what response we are expecting.

Please help me. Thanks.

Hi, have a look at the documentation where the process as well as the responses are documented: