API Download Link no permission

Hi, what i want to do is download a file using Version 12.1.0.1760.
So i get the download URL from the API (api/2.0/files/file/{fileId}/presigneduri)
I receive a link similar to http://onlyoffice.mysite.com/Products/Files/HttpHandlers/filehandler.ashx?action=stream&fileid=7282&version=1&stream_auth=422445117309.IWQQYF5XFO7MAVES2QBONGSO5CXGML3GYVNRMVPIK
but when opening this url i receive an error message:
“You don’t have enough permission to perform the operation”

What am i missing?
Thank you

Hello @roger

First of all, note that your are using an outdated version of Community Server. Please consider updating.

Second, make sure that you are logged in to your portal before using the link to download a file.

Hi Constantine,
ok, it meens that i can not download a file through API ?

OK, i found it.
I use curl cookies to login and then wget it.
Thank you very much.
Roger

1 Like

I’m glad to hear it.