CRM Objects API broken? Returns 404

ALong3
Member

Hello, I'm trying to query the API to see what objects we currently have but it returns a 404. This is the endpoint I tried (as specified in the docs): https://api.hubapi.com/crm/v3/objects/

 

Docs: https://developers.hubspot.com/docs/api/crm/crm-custom-objects

 

Is this endpoint just down at the moment? I'm able to use the API for object definitions just fine (https://api.hubapi.com/crm/v3/schemas/).

 

Thanks!

SDK
0 Upvotes
2 Replies 2
JBeatty
Top Contributor | Platinum Partner

Hi @ALong3,

 

If you look at the developer docs that you linked the endpoint is actually: /crm/v3/objects/{objectType} not /crm/v3/objects/

What this means is it is expecting the objectType URI parameter. The objectType should be the internal id of the custom object definition, which you can find under "name" from the schemas endpoint. An example call to that endpoint should look something along the lines of:

https://api.hubapi.com/crm/v3/objects/houses

If you had "houses" as a custom object.

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

webdew
Top Contributor | Diamond Partner

Hi @ALong3 ,

The api you are using is correct but the address is incomplete: https://api.hubapi.com/crm/v3/objects/
In this address you need to add the object type that you want to fetch. Default objects are contacts,companies,deals,products,tickets.  So if you want to fetch all objects realted to contacts you can use as follows:  https://api.hubapi.com/crm/v3/objects/contacts

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards. 

0 Upvotes