"Retrieve a company" endpoint returns 404, even in doc page

Regarding this endpoint, I’m trying to retrieve a company’s info based on its companyId.

My token contains the required scopes (I did get an error message back before when I didn’t have them), but am now getting a 404 Resource not found error.

Using the ‘test call’ button with a valid companyId on the api reference page also returns a 404, which tells me something is wrong on the hubspot side..

Lastly, I also tried using the v2 variant of this endpoint, but that resource has expired and is no longer usable.

Am I missing something?

Hi @JeroenCloudCTI,

It does not look like there is anything wrong on the HubSpot side - I just did a test call on the documentation and retrieving company records successfully.

Can you share the API call you are trying to make? The one thing I would double check is to make sure you are pasting in the correct company ID in the API call.

evaldas_0-1741878898115.png

Thank you @evaldas , for your extensive answer.

It seems like I put in an invalid id before, it’s all good now​:+1: