APIs & Integrations

Andrew4
Member

No Proper Permissions

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?

0 Upvotes
3 Replies 3
Andrew4
Member

No Proper Permissions

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?

0 Upvotes
Dadams
HubSpot Employee
HubSpot Employee

No Proper Permissions

@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.

Get Associated Engagements | Engagements API

GET /engagements/v1/engagements/associated/:objectType/:objectId/paged - Get engagements associated with another CRM object via the HubSpot API.

0 Upvotes
Dadams
HubSpot Employee
HubSpot Employee

No Proper Permissions

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.

0 Upvotes