Get a response
GET/v3/responses/:id
Get a response
Request
Path Parameters
Id of response
Query Parameters
Responses
- 200
Successful
- */*
- Schema
- Example (from schema)
Schema
Array [
]
data
object
Id of response
Id of Survey
Status of the submission
Id of channel
Language of the response
Time at which response completed
answers
object[]
Question tags
Is the question skipped?
Sentiment value of the text answer
Overall sentiment label of the text answer
Enrich type. CLASSIFICATION, KEYWORD_EXTRACTION, ENTITY_EXTRACTION and TOPIC_EXTRACTION return an array; SUMMARY, SENTIMENT, TRANSLATION, CUSTOM_PROMPT and ENRICH_FORMULA return a single value
Configured output datatype - STRING, NUMBER or BOOLEAN
Present only when the value could not be generated; the answer is then empty
Possible values: [AI_PROCESSING_FAILED, AI_CREDITS_EXHAUSTED, NO_INPUT_FOUND, PLAN_UPGRADE_REQUIRED]
Why the Enrich value is missing
Present only when generation stopped because AI credits ran out
channel
object
Name of the share
Type of channel
Status of channel
{
"data": {
"id": 1,
"survey_id": 2,
"contact_id": 0,
"completed": "string",
"channel_id": 3,
"language": "en",
"completed_time": "2022-03-03T06:19:04.416Z",
"answers": [
{
"question": "How likely are you to recommend our Product to friends?",
"question_tags": [
"string"
],
"question_id": 0,
"skipped": false,
"sentiment_value": 0.82,
"sentiment_label": "Positive",
"enrich_type": "SENTIMENT",
"output_datatype": "STRING",
"error": true,
"error_reason": "AI_PROCESSING_FAILED",
"credit_exhausted": true
}
],
"channel": {
"name": "Email share 1",
"type": "EMAIL",
"status": "ACTIVE"
}
}
}