Hi Everyone, im trying to download an attachment file server side, i already have the url of the attachment, my problem is when i request the url of the file, instead of the file i receive the login page in my response, im aware that purecloud is asking credentials, but i dont know how can give the permissions and go direct to the download url.
Make sure you're sending the standard authorization header with your auth token with the download request. If you don't provide a valid auth token, you'll get the login page.
Yes, you should be sending the auth token with the request in the same manner you make any other authenticated request to the API. Your example is only valid when first obtaining an auth token for client credential and auth code grants; it is not valid for making authenticated API requests. See Client Credentials - Use the access token.