# Create custom event via API

**URL:** <https://community.hubspot.com/t/create-custom-event-via-api/19697>\
**Category:** APIs & Integrations\
**Tags:** events\
**Created:** [March 27, 2020, 6:07pm UTC](https://community.hubspot.com/t/create-custom-event-via-api/19697 "2020-03-27T18:07:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cat\_crash](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cat_crash/32/79091_2.png) [@cat\_crash](https://community.hubspot.com/u/cat_crash)\
**Post date:** [March 27, 2020, 6:07pm UTC](https://community.hubspot.com/t/create-custom-event-via-api/19697/1 "2020-03-27T18:07:18Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [March 27, 2020, 6:40pm UTC](https://community.hubspot.com/t/create-custom-event-via-api/19697/2 "2020-03-27T18:40:02Z")

</div>

Welcome, [@cat\_crash](https://community.hubspot.com/t5/user/viewprofilepage/user-id/125422).

Yes, you can create custom events by [triggering an event](https://developers.hubspot.com/docs/methods/enterprise_events/http_api) 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](https://developers.hubspot.com/docs/methods/tracking_code_api/tracking_code_overview#idsandnames):

**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](https://developers.hubspot.com/) and then [create a test account](https://developers.hubspot.com/docs/faq/how-do-i-create-a-test-account). Test accounts have renewable _Enterprise_-level features, including access to the Events API.
