Is external API calling allowed in a Photoshop plugin?

I would like to create a Photoshop plugin that resizes a PSD document opened by a user to specific dimensions and creates new PSD files.

The planned operation would be as follows:

1. The plugin analyzes the contents of the PSD (layers, text, etc.) on the client side.

2. It sends the information to my server via a JavaScript API call.

3. My server performs the necessary calculations, and the called API sends the new data to the Photoshop plugin in the response.

4. The Photoshop plugin creates the new PSD file based on the received data.

Is such operation allowed in the Adobe environment? Can a plugin that works this way be uploaded to the Creative Cloud Marketplace?

Thank you all for your help!

I am not aware of any restrictions in this regard. I think it is possible.

Thank you very much! Is it okay if I ask the user for a password before performing an operation on the server? It is possible that this will be a paid service in the future. Essentially, it would work by requiring payment on my site for use, for which the user would receive a password. This password would then be used to launch the Photoshop plugin. I would also verify the password on the server using a JavaScript API call.

Would this also be acceptable to Adobe Marketplace?