I’m not personally familiar with Jira, but here’s some general tips:
Log the result and the status code of the http response that you get back. The status code in particular will help you know for sure if it’s an authentication issue.
A quick google search returned some documentation at https://developer.atlassian.com/cloud/jira/platform/swagger-v3.v3.json, you could try looking up your endpoint in there and seeing what parameters it wants.
Additionally, I typically use a tool like Postman to test API calls before attempting to do them with the bot. It’s (in my opinion) a little bit easier to quickly test different headers or parameters in a tool that’s built for it. I’d recommend that you do the same.