APIs & Integrations

jijoamt
Participant

Get all companies/contacts assigned to a huspot user

Hi


@IsaacTakushi

Are there API's available to get all companies, contacts, deals assigned to a huspot user, by passing the hubspot user id in the API. 

 

Thanks Jijo

0 Upvotes
1 Reply 1
IsaacTakushi
HubSpot Employee
HubSpot Employee

Get all companies/contacts assigned to a huspot user

Hi, @jijoamt.

 

Yes!

 

Your best bet is the new v3 CRM Search API.

 

Let's say you wish to retrieve all contact records assigned to user 1234. You could make the following request:

 

POST
https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=YOUR_HUBSPOT_API_KEY

{
    "filterGroups":[
      {
        "filters":[
          {
            "propertyName": "hubspot_owner_id",
            "operator": "EQ",
            "value": "1234"
          }
        ]
      }
    ]
  }

Isaac Takushi

Associate Certification Manager
0 Upvotes