Need All Activities per Deal (Phone Calls, Emails, Meetings, etc).

I cannot find a simple way to bring in all Activities associated with a Deal Id. I am pulling a list of deals via the
/crm/v3/objects/deals?limit=100
endpoint.
This only gives me surface level information on the Deal. I starting reading through documentation on the Engagements, and it seems as if I have to call each Engagement (or obectType???) per Deal Id to get what I want. So that means I have to pull each of the enagement types, 5-6 different API pulls per Deal Id, to append this list into all the activities? That is OK if that’s the case, I figured it would be easier, but to do that isn’t straightforward? What are the Engagement Ids? I tried using this endppoint
https://api.hubapi.com/crm/v3/objects/deals/{dealId}/associations/{toObjectType}/{associationTypeId}
but it is unclear what the Ids are?
Any guidance here?

Hi, @GOber :waving_hand: Thanks for your questions. I sense that there are several questions here. I’ll start with the IDs.

  • You can find Object type IDs here — Object type IDs
  • You can find the default (HubSpot created) Association Ids here — [Association type IDs](http://Association%20type ID)
  • If you’ve created custom Association types (User defined) you can make an API request to get all the IDs between two objects here —
    GET /crm/v4/associations/{fromObjectType}/{toObjectType}/labels​

One area I’ve seen trip up folks is not understanding that association IDs are omnidirectional. For example:

  • Deal to Note is 213
  • Note to Deal is 227

You may already know that, but being aware of the direction of the association is paramount when making this type of call.

Have fun building! —Jaycee

@Jaycee_Lewis
Thank you for your response.

The directions don’t make complete sense to me yet. If I wanted to pull from a Deal, and on that deal an Engagment is logged, let’s say a call. What would the example endpoint be? My question is really around what you mean by the directions.

Also, your link to Association Id’s isn’t valid.