Hi, I am a bit confused, your original question was: "The users would like to call some API outside of the portal, so that they can create records without opening the website and click on it"
if they are outside the Portals, you can look at Dataverse API, the Power Apps Portals API can only be used within the Portals