Hello,
I am trying to use the hubspot API to call a list of custom objects and their properties. Doc is here, and I am using the LIST function:
I am able to query the API without issue, but I can’t put out any details. Right now I am sending this in as as the body:
{
“results”: [
{
"properties": {
"additionalProp1": "email",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
]
}
When I send this in, hubspot accepts it, but does not return the email. How exactly do I return this data from hubspot for custom objects?
Here is the example they give me:
{
“paging”: {
“next”: {
“link”: “?after=NTI1Cg%3D%3D”,
“after”: “NTI1Cg%3D%3D”
}
},
“results”: [
{
“associations”: {
“additionalProp1”: {
“paging”: {
“next”: null,
“prev”: {
“before”: “string”,
“link”: “string”
}
},
“results”: [
{
“id”: “string”,
“type”: “string”
}
]
},
“additionalProp2”: {
“paging”: {
“next”: null,
“prev”: {
“before”: “string”,
“link”: “string”
}
},
“results”: [
{
“id”: “string”,
“type”: “string”
}
]
},
“additionalProp3”: {
“paging”: {
“next”: null,
“prev”: {
“before”: “string”,
“link”: “string”
}
},
“results”: [
{
“id”: “string”,
“type”: “string”
}
]
}
},
“createdAt”: “2024-11-18T19:35:03.347Z”,
“archived”: true,
“archivedAt”: “2024-11-18T19:35:03.347Z”,
“propertiesWithHistory”: {
“additionalProp1”: [
{
“sourceId”: “string”,
“sourceType”: “string”,
“sourceLabel”: “string”,
“updatedByUserId”: 0,
“value”: “string”,
“timestamp”: “2024-11-18T19:35:03.347Z”
}
],
“additionalProp2”: [
{
“sourceId”: “string”,
“sourceType”: “string”,
“sourceLabel”: “string”,
“updatedByUserId”: 0,
“value”: “string”,
“timestamp”: “2024-11-18T19:35:03.347Z”
}
],
“additionalProp3”: [
{
“sourceId”: “string”,
“sourceType”: “string”,
“sourceLabel”: “string”,
“updatedByUserId”: 0,
“value”: “string”,
“timestamp”: “2024-11-18T19:35:03.347Z”
}
]
},
“id”: “string”,
“properties”: {
“additionalProp1”: “string”,
“additionalProp2”: “string”,
“additionalProp3”: “string”
},
“updatedAt”: “2024-11-18T19:35:03.347Z”
}
]
}
