APIs & Integrations

JeroenCloudCTI
Participant

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

SOLVE

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?

0 Upvotes
1 Accepted solution
evaldas
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

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

SOLVE

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. 

 

 

 evaldas_2-1741879010033.png

 

evaldas_1-1741878904256.png

 

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

 


✔️ Did this post help answer your query? Help the community by marking it as a solution.

View solution in original post

2 Replies 2
evaldas
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

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

SOLVE

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. 

 

 

 evaldas_2-1741879010033.png

 

evaldas_1-1741878904256.png

 

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

 


✔️ Did this post help answer your query? Help the community by marking it as a solution.

JeroenCloudCTI
Participant

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

SOLVE

Thank you @evaldas , for your extensive answer.

It seems like I put in an invalid id before, it's all good now👍