I am working on some automation for our Confluence pages. I contacted my IT team who created a token using a service account. IT has confirmed that they can access the space on Confluence (where we want the automation to exist) when logged in under that service account.
However, when I try to setup automation using that token and python's requests library in the following code:
resp = requests.get(
url=f"[redacted link]",
verify=False,
headers={
'Authorization': f'Basic [redacted Atlassian key]',
}
)
print(resp.content)
I get this error response:
b'{"errors":[{"status":404,"code":"NOT_FOUND","title":"Not Found","detail":null}]}
Any ideas on why we can access this page when logged in but we get authorization issues when using the token?