Extract Zendesk Ticket Comments via Zapier

I need a Zapier Python step to fetch only non-public ticket comments from Zendesk. My current attempt fails. How should I get this working?

import requests

endpoint = "https://example.zendesk.com/api/v2/tickets/5678/comments.json"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Basic bXl1c2VyOm15cGFzcw=="
}
result = requests.get(endpoint, headers=headers)
print(result.text)

you might need to filter the json response yourself. decode result.text and check each comment’s ‘public’ flag. double-check your creds, too, as they may change endpoints. hope this helps!