Automatic Jira cloud backup using API token with scopes

Automatic Jira cloud backup using an Unscopes API token and basic authentication works fine with the following URL: {{baseUrl}}/rest/backup/1/export/runbackup.

But with a scoped API token and basic authentication, it does not work with the new URL structure for the scoped API token - https://api.atlassian.com/ex/jira/{cloudid}/{api}. And doesn’t know how to construct the URL to initiate backup with the new URL structure because there is no documented endpoint for that.