The response I get is "{"status":"error","message":"Unable to deduce app-id from this request.","correlationId":"fdd2afbf-7d97-4462-bff6-4933f2860a8f"}"
{ "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" }
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.
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.
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.
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.
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.
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.