The unique ID of the Webhook event. Each Webhook event has its own ID, which you can record to prevent a Webhook event from being processed multiple times.
type
Indicates the type of the Webhook event and the data fields, here being `response`.
responses
An array containing one or multiple response information.
Response Fields
Each element in the responses array contains the following fields:
Unique ID of the response. Each response has a unique ID, which you can use to avoid duplicate processing.
submittedAt
Submission time of the response.
ending
Ending page information of the response. The `name` is the name of the ending, and if the response is from a scored Quiz, the `score` field will be set to the user's score.
metadata
Metadata of the response. This field is only available to Premium plan users; if you are not a Premium plan user, you will receive `null`.
customFields
Custom fields of the response.
answers
Answers information of the response.
Metadata Field
If you are a Premium plan user, you will receive the following metadata:
This field contains all the answers information of the user. For example, if the user answered a single-choice question, you will receive the following answer information:
{
"id": "field-769da8bf5166",
"question": "What is your gender?",
"questionType": "button-selection",
"answerType": "string",
"string": "Female"
}
id
ID of the question. Each question has its unique ID, which changes when the question type is modified.
question
Title of the question.
questionType
Type of the question.
answerType
Data type of the question's answer, which is also the name of the answer field. You can use this field to retrieve the answer; here, the value of this field is `string`, so you can use the `string` field to get the answer.
string
User's answer content. In this example, since `answerType` is `string`, this field contains the user's answer.
You can determine the type of the question based on questionType, and then use the corresponding field of answerType to retrieve the value of the answer.