Rest API service account

I want to set up the creation of queries via web query. I have created a service account and issued for neo API token (The photo will be given the rights). I added this account to the project, issued the rights to the counters. Also checked through the assistant on “Creating tasks”. But I have a 401 error all the time.
Endpoint : https://{company name}.atlassian.net/rest/servicedeskapi/request
I also put a photo of my code and request. If anyone has encountered this, I would be glad to help since support from the atlassian will not help

For the new scoped API tokens, you don’t call your instance URL. You need to call the Atlassian API e.g. for Jira it’s https://api.atlassian.com/ex/jira/{cloudId}.