Broken images when using API


We are importing some images to Hubspot File manager via API, and then setting the links we get from the CDN inside pages, again created with the API. The issue is, we get a URL for the images, however, the actual images don’t seem to appear in the File Manager, and, as a result, on the pages. We can’t figure out whether the images do import to the File manager and then get deleted, or if they don’t appear in the first place.
Any help would be appreciated as it’s quite an urgent thing for us.