I ned to get all custom object properties by object ID. I know object type and ID but this API returns some unexpected stuff:
https://api.hubapi.com/crm/v3/objects/:objectType/:recordId
Something similar Hubspot UI does with this endpoint:
Hi @ISoputniak
To get the properties of a specific custom object record, you will need to include all the properties in the param.
For example:
const properties = [ "id", "name", "model" // continue with all the properties ];
or
https://api.hubapi.com/crm/v3/objects/{object-type}/{record-id}/?properties=id&properties=name&properties=model
However, if you want to see the list of properties that are available for a custom object (not a specific record) then you can use the endpoint to get the schema:
/crm-object-schemas/v3/schemas/{objectType}