How to get all custom object properties by object ID

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:

`https://app.hubspot.com/api/inbounddb-objects/v1/crm-objects/2-31408834/batch?flpViewValidation=true&portalId=46026124&clienttimeout=14000&hs_static_app=crm-records-ui&hs_static_app_version=1.60039&id=13689514151&allPropertiesFetchMode=latest_version`

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}