Hi, I’m using Feedback submissions basic API with python and I have expanded these fields to response:
"hs_contact_id", "hs_submission_timestamp", "hs_value", "hs_survey_name", "hs_survey_type", "hs_sentiment", "hs_submission_name"
I also want the Response fiel where should be any additional comments. I tried adding “hs_response” and “response” to that list but they do not seem to work. I know there are some feedback which contain response data.
Make an API request without filtering the fields and inspect the full response payload. This can help you identify the correct field name that contains the additional comments.
It does not work like that. If I don’t name the properties like that only ones returned are hs_createdate, hs_lastmodifieddate, and hs_object_id.
Hey @eriktheslayer,
The response is captured in a property called “hs_content”. So by appending this to your request using the query parameter “properties=hs_content” will return the information you require (survey responses). For example my contact has responded to a CSAT survey, see below:
I can make the following request to retrieve the information:
GET https://api.hubapi.com/crm/v3/objects/feedback_submissions?properties=hs_content
RESPONSE
"results": [
{
"id": "361419843598",
"properties": {
"hs_content": "This is a comment I left in the survey!",
"hs_createdate": "2024-09-04T08:04:33.750Z",
"hs_lastmodifieddate": "2024-09-04T08:06:26.897Z",
"hs_object_id": "361419843598"
},
"createdAt": "2024-09-04T08:04:33.750Z",
"updatedAt": "2024-09-04T08:06:26.897Z",
"archived": false
}
]
I’ve also recorded a video running through how this works:
Also, I found this property (hs_content) by polling GET /crm/v3/properties/feedback_submissions to see what properties were available to pull using the API.
I hope it helps!
Jack
Thank you for your response! I got it now.
I did not know that the available properties could be polled that way.