Download attachment link without user_key

I want to copy the attachment download link and preview image when I paste that link in hipchat. I get the download link and add the userkey and token to the redirect url but it still asks me to login. How can i bypass the login?