URL for protected file resource

I know how to restrict access of a file to a particular user, and I know how to get the public URL for a file.

But how do I get a URL to a protected file?

I tried:


But both return {“code”:4000,“message”:“User has no permissions for specified resource”}

Hi Anthony,

In general: you cannot, and this is the essence of the file being protected - it just cannot have a public URL since it’s not public.
But in order to retrieve it, you may use the same url AND pass a user-token in headers, so that the request becomes authenticated.