APIs & Integrations

JS2000
Participant

/crm/v3/objects/contacts not returning Company name

 

I am trying to use /crm/v3/objects/contacts  to retrieve all contacts but I see that the field Company name is not being returned in the list.

example: (https://api.hubapi.com/crm/v3/objects/contacts?limit=10&after=1002&hapikey=xxxxxx)

 "results": [
        {
            "id": "1051",
            "properties": {
                "createdate": "2021-11-24T19:20:43.336Z",
                "email": "testcompany27@aol.com",
                "firstname": "Bob27",
                "hs_object_id": "1051",
                "lastmodifieddate": "2021-11-24T19:21:36.260Z",
                "lastname": "Blob27"
            },
            "createdAt": "2021-11-24T19:20:43.336Z",
            "updatedAt": "2021-11-24T19:21:36.260Z",
            "archived": false
        },

Clearly, the documentation show that Company name is supposed to be included.

example from   https://developers.hubspot.com/docs/api/crm/contacts

url:https://api.hubapi.com/crm/v3/objects/contacts?limit=10&archived=false&hapikey=xxxx

"results": [
{
"properties": {
"company": "Biglytics",
"createdate": "2019-10-30T03:30:17.883Z",
"email": "bcooper@biglytics.net",
"firstname": "Bryan",
"lastmodifieddate": "2019-12-07T16:50:06.678Z",
"lastname": "Cooper",
"phone": "(877) 929-0687",
"website": "biglytics.net"
}
}

 

Am I doing something wrong ?

0 Upvotes
1 Reply 1
dennisedson
Community Manager
Community Manager

/crm/v3/objects/contacts not returning Company name

@JS2000 

Good catch!  I will send this to the docs team to see if we can get this updated.

In the interim, you can get the company by adding it as a query param to the url.

eg https://api.hubapi.com/crm/v3/objects/contacts?limit=10&after=1002&hapikey=xxxxxx&properties=company

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes