APIs & Integrations

Mike_1
Member

Unable to access the /events in 14 days free Content Hub Enterprise trial

SOLVE

Account type - HubSpot 14 days free Content Hub Enterprise trial

 

I'm trying to access the https://api.hubapi.com/events/v3/events  endpoint usign the auth token of private app with scopes business-intelligence  and oauth.

But i'm getting the below error 

 

{
"status": "error",
"message": "Insufficient scopes, requires one of: [event-detail-read]",
"correlationId": "e40e470f-03d1-4a71-9bef-1b7f00ygw321",
"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"
}
],
"category": "INVALID_AUTHENTICATION"
}

 

But i can access the /events/v3/events/event-types endpoint data with the same auth token of private app.

 

In the api doc of both endpoint only oauth scope is required so i need help in understanding how to access the /events endpoint. and what is/are the exact scope needed to access this?


Also is this issue because of HubSpot 14 days free Content Hub Enterprise trial account?

 

Also i can't find event-detail-read scope (mentined in the error message) in the private app scope list.

 

API call analysis

  • For both APIs, providing only the OAuth scope results in an error indicating that the required ‘business-intelligence’ scope is missing.

  • Adding the ‘business-intelligence’ scope, while noting that ‘oauth’ is included by default in all apps, 

    • Allows us to fetch data from the /event-types endpoint.

    • However, when accessing the /events endpoint, we still encounter an error stating that the app does not have the required ‘business-intelligence’ scope.

0 Upvotes
1 Accepted solution
MrJustinGivens
Solution
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Unable to access the /events in 14 days free Content Hub Enterprise trial

SOLVE

Hey @Mike_1,

 

Try adding the following two scopes to your private app:

  • analytics.behavioral_events.send
  • behavioral_events.event_definitions.read_write

 

 

View solution in original post

2 Replies 2
Mike_1
Member

Unable to access the /events in 14 days free Content Hub Enterprise trial

SOLVE

@MrJustinGivens  It seems that both scopes (analytics.behavioral_events.send and behavioral_events.event_definitions.read_write) are not part of the plan. Even after adding all the available scopes in the current plan (14 days free Content Hub Enterprise trial), the /events API endpoint is still not accessible.

Mike_1_0-1724943966694.png

 

0 Upvotes
MrJustinGivens
Solution
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Unable to access the /events in 14 days free Content Hub Enterprise trial

SOLVE

Hey @Mike_1,

 

Try adding the following two scopes to your private app:

  • analytics.behavioral_events.send
  • behavioral_events.event_definitions.read_write