No Proper Permissions


#1

When I try to use Email Events API (https://api.hubapi.com/email/public/v1/events?hapikey=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) I get an error:

{
“status”: “error”,
“message”: “This hapikey (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) does not have proper permissions! (requires any of [email-access])”,
“correlationId”: “…”,
“requestId”: “…”
}

Tell me please what should I do in order to use Email Events API with hapikey?


#2

Hi @Andrew

Are you using the hapikey from a portal that only has the HubSpot CRM? Email would only be included with the marketing tools, so you won’t be able to access the email APIs if the portal you’re working with doesn’t have the email tools.


#3

Hi @dadams!

I want to get events that available in sales account (https://app.hubspot.com/sales/xxx/contact/xxx/) such as “username opened email”, “username clicked email”, etc. As I understood I can get them from Email Events API. Or am I wrong?


#4

@Andrew the Email Events API will only include events from the Marketing email tools, so it won’t include data for the one-off emails sent from inside the sales tools (if you’re using the email tab at the top of the contact record). Some of that data would be available by pulling the engagements for the contact, but it wouldn’t be the same level of detail you’d get from the Email Events API.