Using Tempo API V1


We are using Jira Cloud and I am trying to access a specific Tempo API endpoint V1 http://{JIRA_BASE_URL}/rest/tempo-timesheets/4/worklogs/search. This endpoint requires basicAuth. As I understood, basicAuth is not supported anymore. Is it still possible to access that endpoint with Oauth2 or do I need to migrate to a newer API version?

Thank you