Companies API - How to get who made the latest activity and with which contact

companies

#1

Hey,

I'm using Companies API to pull data about our companies.
I could easily get when was the last activity with a company, but is there a way that I could know which user made this activity and with which contact inside the company it happened?

Thanks


#3

Hi @Asaf_Nevo,

This is absolutely possible with the Engagements API. Specifically, I recommend using the Get Associated Engagements endpoint and filtering by the COMPANY object type. For example:

https://api.hubapi.com/engagements/v1/engagements/associated/COMPANY/1234567890/paged?hapikey=demo


#4

Thanks! Ill give it a try.
That brings a follow up question.

Is there a way to query an endpoint?

Like get al engagement of companies with property x?


#5

Hi @Asaf_Nevo,

At this time, it's not possible to query companies in the same way as this Contacts API endpoint. The two most similar endpoints are:


#6