Problems when submitting forms via the API / Private App

Hello,
I have written a Joomla plugin that fills out a form on Hubsport using the API.
I have set up a private app for this and send my data via POST using the following URL:
https://api.hsforms.com/submissions/v3/integration/submit/portalId/formId
As long as I use a local development environment under Localhost / PHP 7.4 or 8.0 and submit the form, everything goes without problems and I also find my form submission in Hubspot.
If I now put the page online with exactly the same code, I get a 404 error from Hubspot without any further error information.
Among other things, I have already opened a support ticket, but I had hoped that they might be able to help me here.
Many thanks
Kiki