Python call to Audits API - "Couldn't authenticate you" | Community
Skip to main content

Python call to Audits API - "Couldn't authenticate you"

  • June 7, 2024
  • 2 replies
  • 0 views

Why can't I get the Authentication to work

 

url = "https://sandboxdomain.zendesk.com/api/v2/tickets/"

url1 = "/audits.json"

 

response = requests.request(

    "GET",

    url+ticket[0]+url1,

    auth=('myuser@workdomain.com/token:{ZD provided token}',""),

    headers=headers

)

2 replies

  • June 7, 2024

Hi Ron, the auth parameter should read as follows:

auth=('myuser@workdomain.com/token', '{ZD provided token}')
 


Alberto18
  • August 26, 2024

hi @charles32 , do you have some docs on python authentication? I tried your suggestion but didn't work
thanks!