Unable to Access Migration REST APIs from Remote Backend

Hi everyone,

I’m developing a feature that enables users of my confluence plugin to migrate from the server version to the cloud (Forge) version using the Confluence Cloud Migration Assistant (CCMA).

Based on the documentation, I see that there are certain services available for this process, such as the App Data Retrieval API Mapping API etc. There are two types of APIs for Rest (As far as I understand, for connect applications.) and Forge. I can use Forge APIs through the Forge function without any issues. The scopes my application has or any other issue do not cause any problems.

However, the majority of my application is implemented as a remote backend, and when I try to call the corresponding services via the REST APIs from my remote backend, I get a “401 - Unauthorized; scope does not match" error. (I can call the product APIs from a remote backend in other parts of my plugin, so I am sure that the necessary authorizations, token validation, and similar processes are working correctly.)

Is it possible to call migration REST APIs through the remote backend this way? Is there a scope I can add to resolve the error I’m getting?

Any guidance or insights would be greatly appreciated! Thanks in advance.

Current permissions:

permissions:
  scopes:
    - read:app-user-token
    - read:app-system-token
    - storage:app
    - read:page:confluence
    - read:confluence-content.summary
    - read:confluence-space.summary
    - read:confluence-user
    - read:space:confluence
    - read:attachment:confluence
    - read:confluence-groups
    - read:content.metadata:confluence
    - search:confluence
    - manage:confluence-configuration	```

Hi @Meriztiryaki
Unfortunately many of the migration API endpoints do not support OAuth2. What endpoint specifically are you after, is it for core product? If so the below guide should help with auth.

Max