Skip to main content

As objects are added to the object library in HubSpot, you can use the object library enablement endpoints to check whether or not an object is activated for use in a HubSpot account. The endpoints can check the status of an object, but you can only activate or deactivate an object from within HubSpot.

If an object is enabled, an app will need the corresponding object scopes to access and manage records for the object. Learn more about creating and managing records using the object APIs.

To check if all objects in the object library are activated in the account, make a GET request to crm/v3/object-library/enablement. Only objects which can be activated or deactivated will be returned (i.e. contacts, companies, deals, and tickets will not be included).

In your response, the enablementByObjectTypeId object will be returned with objectTypeId values and a value of true or false for each. If the value is true, the object is activated for use in the account. If the value is false, the object is deactivated. You can view each object's objectTypeId value in the table in this article.

For example, the following response shows an account where appointments and services are activated, but courses and listings are not.

To check if a specific object is activated, make a GET request to crm/v3/object-library/enablement/{objectTypeId}. Refer to the table in this article to find an object's objectTypeId.

The object's enablement value will be returned as true or false. If the value is true, the object is activated for use in the account. If the value is false, the object is deactivated.

For example, to check if appointments are activated in an account, make a GET request to crm/v3/object-library/enablement/0-421. If appointments are activated, the response will look like: