# Marketing Events API question

**URL:** <https://community.hubspot.com/t/marketing-events-api-question/109110>\
**Category:** APIs & Integrations\
**Tags:** events\
**Created:** [June 11, 2024, 1:21pm UTC](https://community.hubspot.com/t/marketing-events-api-question/109110 "2024-06-11T13:21:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JEvers7](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JEvers7](https://community.hubspot.com/u/JEvers7)\
**Post date:** [June 11, 2024, 1:21pm UTC](https://community.hubspot.com/t/marketing-events-api-question/109110/1 "2024-06-11T13:21:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [June 11, 2024, 3:10pm UTC](https://community.hubspot.com/t/marketing-events-api-question/109110/2 "2024-06-11T15:10:42Z")

</div>

Hi @JEvers7

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

```lia-code-sample
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!

---

<div class="post-metadata">

**Author:** ![JEvers7](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JEvers7](https://community.hubspot.com/u/JEvers7)\
**Post date:** [June 12, 2024, 7:29am UTC](https://community.hubspot.com/t/marketing-events-api-question/109110/3 "2024-06-12T07:29:40Z")

</div>

@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](https://developers.hubspot.com/scopes.%22,%22correlationId%22:%22fb61a160-b2c8-4f66-ae78-d112054b4d87%22,%22errors%22:%5C%5B%7B%22message%22:%22All) of the following scopes are required.”,“context”:{“requiredScopes”:[“business-intelligence”]}}],“links”:{“scopes”:“[https://developers.hubspot.com/scopes"},“category”:"MISSING\_SCOPES](https://developers.hubspot.com/scopes%22%7D,%22category%22:%22MISSING%5C_SCOPES)”}

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [June 12, 2024, 2:15pm UTC](https://community.hubspot.com/t/marketing-events-api-question/109110/4 "2024-06-12T14:15:29Z")

</div>

Hi @JEvers7

Please hit the API again.

Thanks!

---

<div class="post-metadata">

**Author:** ![JEvers7](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JEvers7](https://community.hubspot.com/u/JEvers7)\
**Post date:** [June 12, 2024, 2:21pm UTC](https://community.hubspot.com/t/marketing-events-api-question/109110/5 "2024-06-12T14:21:08Z")

</div>

Hi @GRajput I get the same error..
