Skip to main content

Surveys: submission.created

The submission.created webhook: the payload Digia sends when the app submits a survey answer.

Digia sends submission.created when the app sends a submission, such as a survey answer. Tick Submission created in the webhook settings to receive it.

Setup, headers and signature check are on Webhooks.

Payload​

{
"event": "submission.created",
"test": false,
"submission": {
"submissionId": "6745a1c29f1e2b3c4d5e6f70",
"projectId": "6712f0a19c3b4d5e6f708192",
"campaignKey": "nps-survey",
"deviceId": "8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b",
"userId": "user-123",
"submissionType": "survey",
"payload": {
"templateVersion": "v1",
"completion": { "answeredCount": 4, "totalCount": 5 },
"responses": [
{
"blockId": "b_mi4k8z3qx7k2p",
"blockType": "nps",
"title": "How likely are you to recommend us to a friend?",
"value": 9
},
{
"blockId": "b_mi4k8z9d2fh0w",
"blockType": "single_select",
"title": "What do you use the app for most?",
"value": "opt_mi4k8za1k9f3c",
"valueLabel": "Ordering medicines",
"comment": "Mostly for my parents"
},
{
"blockId": "b_mi4k8zf7m3q8e",
"blockType": "multi_select",
"title": "Which features do you use?",
"value": ["opt_mi4k8zg2p7d1x", "opt_mi4k8zg5w0b6r"],
"valueLabel": ["Refill reminders", "Lab reports"]
},
{
"blockId": "b_mi4k8zk8t4n2j",
"blockType": "long_text",
"title": "Anything we can do better?",
"value": "Delivery tracking could be clearer."
}
]
},
"computed": {
"durationMs": 42150,
"npsBucket": "promoter"
}
},
"occurredAt": "2026-12-02T10:15:00.123Z"
}
FieldMeaning
testAlways false. Survey tests in the dashboard do not send this event.
occurredAtWhen the user finished, in ISO 8601 UTC.
submission.submissionIdThe ID of the submission.
submission.projectIdThe ID of your project.
submission.campaignKeyThe key of the campaign, as shown in the dashboard.
submission.deviceIdThe device that sent it.
submission.userIdThe user ID your app set with setUserId, or null.
submission.submissionTypesurvey, quiz, spin_wheel, scratch_card or generic.
submission.payloadThe answers. See below.
submission.computedValues worked out from the answers. See below.

Survey answers​

FieldMeaning
payload.templateVersionThe version of this shape. Now v1.
payload.completion.answeredCountHow many questions the user answered.
payload.completion.totalCountHow many questions the survey has. Welcome and info screens are not counted.
payload.responsesOne item per answered question, in survey order. Skipped questions are left out.
computed.durationMsHow long the user took to finish, in milliseconds.
computed.npsBucketpromoter (9 to 10), passive (7 to 8) or detractor (0 to 6). Only sent when the survey has an NPS question.

Each item in responses:

FieldMeaning
blockIdThe ID of the question, such as b_mi4k8z3qx7k2p. Digia makes it when the question is added, and it stays the same when you edit the question. It is random, so you cannot choose or predict it. A copied question gets a new one.
blockTypeThe kind of question, such as nps, rating, single_select, multi_select, short_text, long_text, number, email or date.
titleThe question text the user saw.
valueThe answer. A number for nps, rating and number. An option ID, such as opt_mi4k8za1k9f3c, for single choice. A list of option IDs for multiple choice. Text for everything else.
valueLabelChoice questions only. The option text the user saw, or a list of them.
commentOnly when the user added a comment.

Use blockId and value in your logic. Use title and valueLabel for display, since you can edit them later in the dashboard.