Making HTTP API Requests When Creating Marketing Events in HubSpot

I need help with HubSpot marketing event functionality. I want to know if it’s possible to trigger an HTTP API call when someone clicks the create event button.

Basically, I’m working with the marketing events feature that you can find by going to the Contacts menu, then selecting Contacts, and finally clicking on Marketing Event. When users create a new event through this interface, I want to automatically send data to an external API.

Is this something that can be done? If so, what would be the best approach to implement this functionality? I’m looking for guidance on how to set up this API integration properly.

Any code examples or step-by-step instructions would be really helpful. Thanks in advance for any assistance.

You could also use HubSpot’s timeline events API with custom properties. We did something like this last year - created a custom object property that gets filled when events are created, then used the Timeline Events API to track changes. Set up polling to check for new marketing events regularly and trigger your HTTP calls from there. Use the Search API to find recently created events by timestamp. This gives you way more control over timing and what data you send compared to just using workflows. The Timeline Events API docs have all the details you need.

We encountered a similar challenge about six months ago while trying to sync marketing events with our CRM. Unfortunately, there isn’t a direct method to trigger an HTTP call upon the creation of a marketing event in HubSpot. Instead, we utilized HubSpot’s workflows to monitor property changes triggered by new event creation. By setting up a webhook in the workflow, you can have it call your external API. While it doesn’t trigger instantly when you click the button, it effectively captures all the marketing event creations reliably. For more sophisticated needs, consider exploring HubSpot’s private apps.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.