Companies Additional Domains missing in V3

When I get a list of companies I pass the domain property in the URL and that gives me their primary domain. However there are more domains attached to the company.

How do I get the list of all the domains attached to the account in API v3?

@JakeAGill , there is an hs_additional_domains property that should house these. Add it as a query parameter to your request

/crm/v3/objects/companies/:companyID?hapikey={{hapikey}}&properties=hs_additional_domains&archived=false

Thanks that is perfect, much appreciated.

Out of interest is this documented anywhere? I can’t find that anywhere and it isn’t in the list of properties within Hubspots settings → properties section

@JakeAGill ,

That is a reasonable question :grinning_face:

From the UI, it looks to sit under the domain property.

But if you do a request to the properties api, you can search for domain and find the correct property. I believe it is like that in the UI for the sake of simplicity.

“Is this documented anywhere”

Congratulations! You just documented it in the Community which is typically the top search result on Google! Consider yourself famous :upside_down_face:

Hey @dennisedson , this doesn’t seem to be available anymore. Is it deprecated or moved somewhere?
I cannot see such a property in the response body neither in the properties endpoint nor the company endpoint.

@APetkov , just checked on my account and I was given the correct response. the only real update to the above is removing the hapikey and using a bearer token instead.
this was my updated request:

https://api.hubapi.com/crm/v3/objects/companies/15244076140?properties=hs_additional_domains

Ha! @dennisedson That’s interesting, thanks.
If you call this specific endpoint you can get the associated domain:

However, if you make a generic request to return the company properties, you will not find the associated domains there.

That’s weird, but I believe that’s the only way to access them, right?

correct. any properties that are not part of the default returned properties will have to be returned by including the query parameter

Hey @dennisedson, that’s very curious. Thank you for your reply! Is there an easy way/reference where I can find all of the “non-default” properties?

You can make a call to the contact properties endpoint to grab them all. and just to be clear “non-default” in this context refers to properties that are not returned by default with a request to the crm objects API.