Hi Atlassian Team,
I generated API Token, following this documentation Link
I used that token and the email which generated the token to get audit records, following this documentation Link
I used Python code, the same as documentation
But it returned 401 Unauthorized error and a message "Client must be authenticated to access this resource."
Then I added Authorization to header of the request.
auth_key = base64.b64encode(b"email:pass").decode("ascii")
headers = { "Authorization": "Basic " + auth_key}Or without encoding base64
headers = { "Authorization": "Basic " + token}It still returned the same error.
I've already double checked the email and token. There is no mistake.
Did I miss anything ?
Thanks and best regards,
Ngan Tran.