Hi, I created a custom object with internal name = “gridly_objects”
I read all Hubspot developer docs, and I could successfully make Hubspot API request such as
/crm/v3/schemas/{objectTypeId}
/crm/v3/schemas/p_{object_name}
But when I attempt to make a GET request to crm/v3/objects/{objectType}/{recordId}, it always returns
Spoiler
{
“status”: “error”,
“message”: “Unable to infer object type from: gridly_objects”,
“correlationId”: “b0b7eeec-907f-40b0-a85c-90d20b8c5737”
}
I don’t understand why. Could anyone support me with this case? Is it about the scope of private apps or I have called the wrong endpoints?
Hi @JerikaNguyen,
The error you’re seeing, “Unable to infer object type from: gridly_objects,” usually means HubSpot isn’t recognizing the object type you’re passing in your API call.
For custom objects, the {objectType} in your endpoint should be the custom object’s unique object type ID, which typically looks like p_{object_name} (for example, p_gridly_objects), not just the internal name.
Try updating your GET request to use:crm/v3/objects/p_gridly_objects/{recordId}
Also, double-check that your private app has the correct scopes (such as crm.objects.custom.read or crm.objects.custom.write) to access custom objects.
If you still encounter issues, please let me know what your request URL looks like, and I can help troubleshoot further.