How to retrive the deals which user created enagements on it through crm V3 deals api?

How to retrive the deals which user created enagements on it through crm V3 deals api?

What type of filter should we apply on it?

Hello @sVangaveti
To retrieve deals which a user has created engagements on using the CRM V3 Deals API, you can apply a filter based on the user’s ID and engagement type.
To retrieve deals where a specific user has created engagements of type “meeting” using the Deals API:

GET /crm/v3/objects/deals?filter=engagements.createdBy.id EQ {USER_ID} AND engagements.type EQ "MEETING"

replace {USER_ID} with the ID of the user whose engagements you want to filter by.

API request assumes that the user’s engagements have been associated with the deals using the “Associations API”. If you haven’t done so, you can associate engagements with deals using the following API endpoint.

PUT /crm/v3/engagements/{ENGAGEMENT_ID}/associations/deal/{DEAL_ID}

replace {ENGAGEMENT_ID} with the ID of the engagement you want to associate with the deal, and replace {DEAL_ID} with the ID of the deal you want to associate the engagement with.