# Scope/OAuth issues using the Events V3 API

**URL:** <https://community.hubspot.com/t/scope-oauth-issues-using-the-events-v3-api/107770>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [May 22, 2024, 4:59pm UTC](https://community.hubspot.com/t/scope-oauth-issues-using-the-events-v3-api/107770 "2024-05-22T16:59:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![CBman](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@CBman](https://community.hubspot.com/u/CBman)\
**Post date:** [May 22, 2024, 4:59pm UTC](https://community.hubspot.com/t/scope-oauth-issues-using-the-events-v3-api/107770/1 "2024-05-22T16:59:12Z")

</div>

Hi folks,

In an effort to see if the Events API may contain a way for me to get email events as well outside of the official email API, I wanted to see the data that comes from the Events V3 API.

I keep getting this error despite clearing my cache, verifying my test account permissions, modifying my code to include the business-intelligence scope and changing my application scope to require the business-intelligence scope for this API. [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/events/event-analytics)

{“message”:“Your app doesn’t the have scopes needed to make this call. Do you have access to the ‘business-intelligence’ scope? Missing auth details: event-detail-read,web-analytics-api-access”}

Anyways, thanks team for any support

Edit:

does this line here imply that I can’t access this API unless the free test and dev account I have (separate from my dev account) is upgraded to a higher enterprise plan?

 ![Screenshot 2024-05-22 at 2.35.43 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/a/5ac04d3143209364f69ab09919a06a9a30e4ca35.png)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 23, 2024, 3:25pm UTC](https://community.hubspot.com/t/scope-oauth-issues-using-the-events-v3-api/107770/2 "2024-05-23T15:25:56Z")

</div>

Hey, @CBarnwell 👋 Thanks for your question. Can you clarify which account cannot use the mentioned API? Is it one of the app test accounts created from a dev portal? Or is this happening with a free HubSpot account that you are testing with?

Thanks! — Jaycee

---

<div class="post-metadata">

**Author:** ![CBman](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@CBman](https://community.hubspot.com/u/CBman)\
**Post date:** [May 23, 2024, 5:27pm UTC](https://community.hubspot.com/t/scope-oauth-issues-using-the-events-v3-api/107770/3 "2024-05-23T17:27:41Z")

</div>

Hi [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) so, I have a oauth-based app install on my dev account that’s trying to access the business-intelligence data on the app test account.

Edit: Just to clarify, it’s an oauth-based app on my dev account that’s installed on the app test account. I am trying to access the business-intelligence data from the app test account.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 30, 2024, 3:16am UTC](https://community.hubspot.com/t/scope-oauth-issues-using-the-events-v3-api/107770/4 "2024-05-30T03:16:50Z")

</div>

Hey, @CBman 👋 I get the same error using my test portal and a Private App.

Request:

```lia-code-sample
curl --request GET \
 --url 'https://api.hubapi.com/events/v3/events/?objectType=cats' \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

```

Response

```lia-code-sample
HTTP 403

{
 "status": "error",
 "message": "Insufficient scopes, requires one of: [event-detail-read,web-analytics-api-access]",
 "correlationId": "deffb184-1a36-444c-9bf7-6d98214c8f07",
 "errors": [
 {
 "message": "Your app doesn't the have scopes needed to make this call. Do you have access to the 'business-intelligence' scope? Missing auth details: event-detail-read,web-analytics-api-access"
 }
 ],
 "category": "INVALID_AUTHENTICATION"
}

```

Scopes on my Private App

 ![CleanShot 2024-05-29 at 21.09.12@2x.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/4/6443b5fe960495067fbf190f9bdae91fba8b45e2.png)

I am going to track down the team that owns this endpoint and confirm the following:

- is this endpoint not working as designed in relation to [developer test accounts](https://developers.hubspot.com/docs/api/account-types#developer-test-accounts)
- is there a reason this would **not** be available to public apps using OAuth and installed in a [developer test account](https://developers.hubspot.com/docs/api/account-types#developer-test-accounts)? That feels confusing to me 🙃

In fully transparency, I will be OOO Friday, but I’ll get this to my internal resources tomorrow.

Thank you very much for taking the time to post this issue here.

Talk soon! — Jaycee

---

<div class="post-metadata">

**Author:** ![CBman](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@CBman](https://community.hubspot.com/u/CBman)\
**Post date:** [May 30, 2024, 3:27pm UTC](https://community.hubspot.com/t/scope-oauth-issues-using-the-events-v3-api/107770/5 "2024-05-30T15:27:49Z")

</div>

Thanks [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) for looking into this and forwarding the information. You may need the **business-intelligence** scope mentioned in the request. I have that on my application although it doesn’t work.  
I notice a new piece of information here though. I didn’t initially request for the **behavioral\_events.event\_definitions.read\_write** but my account can’t access for that I think since when I request for that, I get this error.

```lia-code-sample
 HTTP 403
 {
 "status": "error",
 "message": "Authorization failed because this account doesn't have access to the scopes required by the app. Please contact HubSpot support.",
 "correlationId": "c7676c79-0aa4-4180-b413-af1ba26af698",
 "category": "MISSING_SCOPES",
 "subCategory": "AuthorizationErrorType.PORTAL_UNAUTHORIZED"
 }

```

I also noticed that in the docs, [https://developers.hubspot.com/docs/api/scopes](https://developers.hubspot.com/docs/api/scopes) that only marketing enterprise accounts can leverage that scope. Is that scope necessary to access the v3 Events API?

 ![Screenshot 2024-05-30 at 9.52.40 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/d/d6b3171af8cae7536b594b7ea9252df59cbd1694.png)

---

<div class="post-metadata">

**Author:** ![CBman](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@CBman](https://community.hubspot.com/u/CBman)\
**Post date:** [June 10, 2024, 2:23pm UTC](https://community.hubspot.com/t/scope-oauth-issues-using-the-events-v3-api/107770/6 "2024-06-10T14:23:51Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) Is there any update on this issue?

---

<div class="post-metadata">

**Author:** ![ITsenov](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/itsenov/32/97949_2.png) [@ITsenov](https://community.hubspot.com/u/ITsenov)\
**Post date:** [May 31, 2024, 1:55pm UTC](https://community.hubspot.com/t/scope-oauth-issues-using-the-events-v3-api/107770/7 "2024-05-31T13:55:59Z")

</div>

Hello, I have the same issue. My app has business-intelligence access, although not behavioural\_events as my account cannot access that even though it is super admin.

---

<div class="post-metadata">

**Author:** ![CBman](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@CBman](https://community.hubspot.com/u/CBman)\
**Post date:** [July 12, 2024, 3:10pm UTC](https://community.hubspot.com/t/scope-oauth-issues-using-the-events-v3-api/107770/8 "2024-07-12T15:10:05Z")

</div>

I updated my free trial subscription on the dev account and it started to work FYI for anyone else troubleshooting this issue.  
However, it doesn’t seem like I can retrieve any email send events with this API even though I’m sending emails and getting statistics on them via the marketing emails APIs. Should the /events v3 API retrieve email events as well? I used the query events API to retrieve all the ones that have “sent” in the name.  
[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)
