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:
https://api.backendless.com/76A44AAB-3553-78FD-FF60-5DD2B0921400/v1/files/configuration/configuration.json

And:
https://user:password@api.backendless.com/76A44AAB-3553-78FD-FF60-5DD2B0921400/v1/files/configuration/configuration.json

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.