Get all companies in a CRM Deal Stage


#1

I've been trying to get the ids of companies in a deal stage (given stage id).

I can't seem to find that endpoint in the documentation

Any help would be greatly appreciated


#2

Hi @marco213,

Companies don't directly have a deal stage; they're only associated with deal records, and those deal records can be in a particular stage. It's not currently possible to get all deals in a certain deal stage, but you can do the following:

  1. Pull all deals, including their deal stage and associated company
  2. Filter for only the ones in the deal stage you want
  3. Use the returned company IDs to pull the company records you want