How to use Bamboo API to obtain artifacts

I am trying to create a Python script that will get the artifacts after a build and copy the file to another location. I am having an issue where the response I get from the request is asking for me to log in. I am sending the authorization token with it and it doesn’t seem to care about it. Is there another way to get around the log in or is there a way for me to log into the site first through the API?