# Create a marketing event

**URL:** <https://community.hubspot.com/t/create-a-marketing-event/27727>\
**Category:** APIs & Integrations\
**Tags:** events\
**Created:** [November 7, 2020, 3:17am UTC](https://community.hubspot.com/t/create-a-marketing-event/27727 "2020-11-07T03:17:38Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![kawsar-hamid](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kawsar-hamid/32/35493_2.png) [@kawsar-hamid](https://community.hubspot.com/u/kawsar-hamid)\
**Post date:** [November 7, 2020, 3:17am UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/1 "2020-11-07T03:17:38Z")

</div>

Hello,

I have been trying to create a marketing event by following this API - [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/marketing/marketing-events).

**The response I get is “{“status”:“error”,“message”:“Unable to deduce app-id from this request.”,“correlationId”:“fdd2afbf-7d97-4462-bff6-4933f2860a8f”}”**

Here is the request payload-

POST /marketing/v3/marketing-events-beta/events?hapikey={apikey} HTTP/1.1

Host: [api.hubapi.com](http://api.hubapi.com)

Content-Type: application/json

Cache-Control: no-cache

Postman-Token: 969a8735-286d-610d-73a9-0b59099ea6e2

{

“eventName”:“Hubspot Marketing Event Dummy”,

“eventType”:“WEBINAR”,

“startDateTime”:“2020-11-01T05:00:00.000Z”,

“endDateTime”:“2020-11-01T06:30:00.000Z”,

“eventOrganizer”:“Manobyte”,

“eventDescription”:“Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”,

“eventUrl”:“https//example.com/marketingevent/%s”,

“eventCancelled”:false,

“externalAccountId”:“1e5e35ed-23d8-4a9e-9477-3395b3fb14fa”,

“externalEventId”:“17”

}

Please help me to find what is wrong?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 9, 2020, 3:02pm UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/2 "2020-11-09T15:02:24Z")

</div>

Hi @kawsar-hamid ,

Are you still having issues with this? First of all, the JSON you here has an extra

**]**

at the end.

Wondering if @ParkerShort has had a chance to play with this new API, yet and has a suggestion!

---

<div class="post-metadata">

**Author:** ![kawsar-hamid](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kawsar-hamid/32/35493_2.png) [@kawsar-hamid](https://community.hubspot.com/u/kawsar-hamid)\
**Post date:** [November 9, 2020, 4:56pm UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/3 "2020-11-09T16:56:13Z")

</div>

@dennisedson Yes, still same issue

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 16, 2020, 8:14pm UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/4 "2020-11-16T20:14:53Z")

</div>

Hey @kawsar-hamid , are you using your [Developer hapikey](https://legacydocs.hubspot.com/docs/faq/developer-api-keys)?

---

<div class="post-metadata">

**Author:** ![kawsar-hamid](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kawsar-hamid/32/35493_2.png) [@kawsar-hamid](https://community.hubspot.com/u/kawsar-hamid)\
**Post date:** [November 17, 2020, 6:16am UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/5 "2020-11-17T06:16:14Z")

</div>

Hello Dennis,

Yes, I am using my developer hpikey.

---

<div class="post-metadata">

**Author:** ![ASavaliya](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/asavaliya/32/47092_2.png) [@ASavaliya](https://community.hubspot.com/u/ASavaliya)\
**Post date:** [April 9, 2021, 6:02am UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/6 "2021-04-09T06:02:41Z")

</div>

Facing same issue.

Is there any solution or work around for this?

---

<div class="post-metadata">

**Author:** ![Caterpy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/caterpy/32/99730_2.png) [@Caterpy](https://community.hubspot.com/u/Caterpy)\
**Post date:** [August 4, 2021, 9:17am UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/7 "2021-08-04T09:17:12Z")

</div>

I’m also getting this error, is there a solution ?  
@kawsar-hamid and @ASavaliya have you managet to find a solution for this ?

---

<div class="post-metadata">

**Author:** ![BCoates](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bcoates/32/14727_2.png) [@BCoates](https://community.hubspot.com/u/BCoates)\
**Post date:** [September 3, 2021, 8:29am UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/8 "2021-09-03T08:29:37Z")

</div>

Did you find a solution to this having same problem

---

<div class="post-metadata">

**Author:** ![Deeptortion](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@Deeptortion](https://community.hubspot.com/u/Deeptortion)\
**Post date:** [September 6, 2021, 8:14am UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/9 "2021-09-06T08:14:36Z")

</div>

Can someone please update on this? The issue still persists.  
The support team, on reaching out, has the same canned response - and keeps pointing to an unresponsive developer forum on slack. I mean, even on Slack, there’s no dedicated support - and mostly just users helping other users out.

---

<div class="post-metadata">

**Author:** ![LHarney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lharney/32/21203_2.png) [@LHarney](https://community.hubspot.com/u/LHarney)\
**Post date:** [October 20, 2021, 9:18am UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/10 "2021-10-20T09:18:18Z")

</div>

This occurs when you use the hapi\_key. This error does not occur when using [OAuth authentication.](https://developers.hubspot.com/docs/api/working-with-oauth)

---

<div class="post-metadata">

**Author:** ![LHarney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lharney/32/21203_2.png) [@LHarney](https://community.hubspot.com/u/LHarney)\
**Post date:** [October 20, 2021, 9:35am UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/11 "2021-10-20T09:35:42Z")

</div>

Can anyone tell me where you can find ’

externalAccountId’and ’

externalEventId’? Thanks

---

<div class="post-metadata">

**Author:** ![PSayers](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@PSayers](https://community.hubspot.com/u/PSayers)\
**Post date:** [December 22, 2021, 11:14pm UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/12 "2021-12-22T23:14:33Z")

</div>

This is still broken when using HAPI key. It’s been over a year.

Are there any updates here?

---

<div class="post-metadata">

**Author:** ![danielfrancis](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@danielfrancis](https://community.hubspot.com/u/danielfrancis)\
**Post date:** [June 3, 2022, 8:52pm UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/13 "2022-06-03T20:52:08Z")

</div>

Hey all!

I am unsure how to make a POST req successfully but I have found a solution to the “app-id” issue.

Instead of using the hapikey to authorize the request, you want to add \<Authorization\> to your headers as a key. For the value of Authorization, you want to use your applications access token. If you do not have a HubSpot app or are unsure about how to create a HubSpot app, [click this link.](https://legacydocs.hubspot.com/docs/faq/how-do-i-create-an-app-in-hubspot)

After you have your app set up, you can manage access tokens.

The reason for using the apps access token seems to be the response when trying to use the hapikey. Instead of defining the \<app-id\> somewhere within the query params (as the documentation explains), when you use the access token HubSpot grabs the app-id automatically. Effectively removing the need for an app-id param.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Jasper\_Madrone](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@Jasper\_Madrone](https://community.hubspot.com/u/Jasper_Madrone)\
**Post date:** [April 13, 2023, 12:35pm UTC](https://community.hubspot.com/t/create-a-marketing-event/27727/14 "2023-04-13T12:35:58Z")

</div>

I created an app to help with this if you are interested. It is approved on the HubSpot marketplace, and I think it could help your use case. It allows you have a settings page UI to create events directly in the HubSpot tool without needing to go to the API. I also added a Workflow action that can manage the registration status of contacts for the created events.  
Check it out [here](https://ecosystem.hubspot.com/marketplace/apps/marketing/events/go-marketing-events-for-hubspot-1546304)
