APIs & Integrations

cat_crash
Member

Create custom event via API

SOLVE

Hi, 

is any way to create a custom event via API ? 

 

Also, struggle with creating an event via the web interface (for integration dev. purposes). It's require Marketing Hub Enterprise subscription but I'm a developer and it looks like overkill to have such subscription just for the app testing/development. 

 

Any ideas? 

1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Create custom event via API

SOLVE

Welcome, @cat_crash.

 

Yes, you can create custom events by triggering an event and setting the event ID property (_n) to a string name (e.g. new_custom_event). As mentioned in the Event IDs and names section of this documentation:

 

You can also trigger an event using a string name for the event. If you use a name, and there is not an existing event that already has that name, a new event with that name will be dynamically created.

 

If you need access to an Enterprise subscription for development purposes, spin up a developer account here and then create a test account. Test accounts have renewable Enterprise-level features, including access to the Events API.

Isaac Takushi

Associate Certification Manager

View solution in original post

1 Reply 1
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Create custom event via API

SOLVE

Welcome, @cat_crash.

 

Yes, you can create custom events by triggering an event and setting the event ID property (_n) to a string name (e.g. new_custom_event). As mentioned in the Event IDs and names section of this documentation:

 

You can also trigger an event using a string name for the event. If you use a name, and there is not an existing event that already has that name, a new event with that name will be dynamically created.

 

If you need access to an Enterprise subscription for development purposes, spin up a developer account here and then create a test account. Test accounts have renewable Enterprise-level features, including access to the Events API.

Isaac Takushi

Associate Certification Manager