Marketing Events API question

Hi,

I have a couple of questions regarding the Marketing Events API.

  1. We want to get a marketing event API but the ExternalEventID is required to get this. Our event is created in Hubspot, so it has no External Event ID. Is it possible to get the details of this event without it? (API endpoint: /marketing/v3/marketing-events/events/{externalEventId}). We know that it has no ExternalEventID because if we want to get the participants breakdown by contact, the ExternalEventID in the results is empty. (/marketing/v3/marketing-events/participations/contacts/{contactIdentifier}/breakdown)
  2. Is it possible to get all marketing events with the API?

Best wishes,

Joeri

Hi @JEvers7

For question no. 2- if you want to get all marketing events then you can use the following CURL:

curl --location 'https://api.hubapi.com/reports/v2/events' \
--header 'Authorization: Bearer pat-na1-cd34543a-a48a-4074-beca-bb88a6f01baa'

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!

@GRajput Thanks for your response. I tried this, but I keep getting an error that the business-intellegence scope is required. I added it to the list of scopes of my private app but the error keeps appearing.

{“status”:“error”,“message”:“This app hasn’t been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.",“correlationId”:“fb61a160-b2c8-4f66-ae78-d112054b4d87”,“errors”:\[{“message”:"All of the following scopes are required.”,“context”:{“requiredScopes”:[“business-intelligence”]}}],“links”:{“scopes”:“https://developers.hubspot.com/scopes"},“category”:"MISSING\_SCOPES”}

Hi @JEvers7

Please hit the API again.

Thanks!

Hi @GRajput I get the same error..