Dec 23, 2016 6:33 AM
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?
Dec 26, 2016 6:26 AM
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?
Dec 27, 2016 12:28 PM
@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 /engagements/v1/engagements/associated/:objectType/:objectId/paged - Get engagements associated with another CRM object via the HubSpot API.
Dec 23, 2016 11:44 AM
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.