Hello @Marcus3 , thank you for writing here in te forum.
What you describe sounds like a usecase for a webhook.
HubSpot supports them and they are fairly easy to set up.
That said you should definatelly start from this link here.
Reading through the above article you will understand how it works and find more links to documentation pages. If my answer was helpful please mark it as a solution.