API request yields error status code 401

Because one of the powerups we are using is being deprecated, I’m forced to find another way to accomplish a specific task.

In doing so, I’m using Pipedream .com to make API requests to download the image of an attachment on a trello card. While pipedream can successfully access the card and the attachment data, for some reason, when it makes an HTTP GET, it’s met with error status code 401 “unauthorized permission requested.”

I have regenerated the key and the token and it works for retrieving data but not for downloading the attachment.

For what it’s worth, I cannot allow this board or workspace to be public.

Furthermore, I am aware of and have followed the guidelines posted about this topic here: Trello

And I am using api.trello .com instead of just trello .com.

Any help with this would be greatly appreciated.