Tech Note: Example Webhook Responses- Guide, Poll & NPS
UPDATE: This has been added to our Help Center article on Webhooks under the 'Example Webhook Responses' section.
----------------
Below you will find example response bodies for these webhook types:
- Guide Displayed
- Poll Displayed
- Poll Submitted
- NPS Displayed
- NPS Submitted
These examples have had all identifying info replaced. Thanks Todd Stoffer for putting this together!
Guide Displayed
{
"app": {
"id": -323232,
"name": "test_application",
"platform": "web"
},
"accountId": "Webhook Account",
"subscription": {
"id": 4802463602049999,
"name": "test_application"
},
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36",
"event": "guideDisplayed",
"properties": {
"guideId": "Kg92trd4yOzpDb2inI5eTOdcR0U",
"guideProperties": {
"createdAt": 1615411012615,
"createdByUser": {
"username": "pendo-user@example.com"
},
"id": "Kg92trd4yOzpDb2inI5eTOdcR0U",
"lastUpdatedAt": 1618322253073,
"lastUpdatedByUser": {
"username": "pendo-user@example.com"
},
"name": "Poll 1 - Test",
"steps": [
{
"id": "UgG7AtWEXNuvHBBcTqSQ8NxGvAU",
"lastUpdatedAt": 1618322251476,
"resetAt": 1617633741117,
"type": "building-block"
}
]
},
"guideStepId": "UgG7AtWEXNuvHBBcTqSQ8NxGvAU",
"language": "en-US"
},
"timestamp": 1626803876,
"visitorId": "Webhook Visitor",
"uniqueId": "f9610795860d89fe29491846fe297bcc922e460b"
}
Poll Displayed
{
"app": {
"id": -323232,
"name": "test_application",
"platform": "web"
},
"accountId": "Webhook Account",
"subscription": {
"id": 4802463602049999,
"name": "test_application"
},
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36",
"event": "pollDisplayed",
"properties": {
"guideId": "Kg92trd4yOzpDb2inI5eTOdcR0U",
"guideProperties": {
"createdAt": 1615411012615,
"createdByUser": {
"username": "pendo-user@example.com"
},
"id": "Kg92trd4yOzpDb2inI5eTOdcR0U",
"lastUpdatedAt": 1618322253073,
"lastUpdatedByUser": {
"username": "pendo-user@example.com"
},
"name": "Poll 1 - Test",
"steps": [
{
"id": "UgG7AtWEXNuvHBBcTqSQ8NxGvAU",
"lastUpdatedAt": 1618322251476,
"resetAt": 1617633741117,
"type": "building-block"
}
]
},
"guideStepId": "UgG7AtWEXNuvHBBcTqSQ8NxGvAU",
"language": "en-US"
},
"timestamp": 1626803876,
"visitorId": "Webhook Visitor",
"uniqueId": "3373ffb08b355be4e53e3816a84a7bcdd4fbc6ed"
}
Poll Submitted
{
"app": {
"id": -323232,
"name": "test_application",
"platform": "web"
},
"accountId": "Webhook Account",
"subscription": {
"id": 4802463602049999,
"name": "test_application"
},
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36",
"event": "pollSubmitted",
"properties": {
"guideId": "Kg92trd4yOzpDb2inI5eTOdcR0U",
"guideProperties": {
"createdAt": 1615411012615,
"createdByUser": {
"username": "pendo-user@example.com"
},
"id": "Kg92trd4yOzpDb2inI5eTOdcR0U",
"lastUpdatedAt": 1618322253073,
"lastUpdatedByUser": {
"username": "pendo-user@example.com"
},
"name": "Poll 1 - Test",
"steps": [
{
"id": "UgG7AtWEXNuvHBBcTqSQ8NxGvAU",
"lastUpdatedAt": 1618322251476,
"resetAt": 1617633741117,
"type": "building-block"
}
]
},
"guideStepId": "UgG7AtWEXNuvHBBcTqSQ8NxGvAU",
"language": "en-US",
"pollResponses": [
{
"duration": 11964,
"pollId": "afxd8uayh4u",
"pollType": "PositiveNegative",
"response": 1
},
{
"duration": 11964,
"pollId": "rtzh4txwz4f",
"pollType": "NumberScale",
"response": 2
},
{
"duration": 11964,
"pollId": "pspats0sy5f",
"pollType": "FreeForm",
"response": "Open Text Answer"
},
{
"duration": 11964,
"pollId": "braocb22n4j",
"pollType": "PickList",
"response": "Product Manager"
}
]
},
"timestamp": 1626803991,
"visitorId": "Webhook Visitor",
"uniqueId": "fbd70226173184006adc31b810b93f36bb52ec02"
}
NPS Displayed
{
"app": {
"id": -323232,
"name": "test_application",
"platform": "web"
},
"accountId": "Webhook Account",
"subscription": {
"id": 4802463602049999,
"name": "test_application"
},
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36",
"event": "npsDisplayed",
"properties": {
"guideId": "FjHsQ7S8z0ircYxe3vO4GHawvwI",
"guideProperties": {
"createdAt": 1591024335185,
"createdByUser": {
"username": "pendo-user@example.com"
},
"id": "FjHsQ7S8z0ircYxe3vO4GHawvwI",
"lastUpdatedAt": 1626804377122,
"lastUpdatedByUser": {
"username": "pendo-user@example.com"
},
"name": "Quarterly NPS",
"steps": [
{
"id": "WkaB4F2droQ5sSqd-FvC7H9coJQ",
"lastUpdatedAt": 1619546765626,
"resetAt": 1592592811776,
"type": ""
},
{
"id": "oFs_eA1lF61Ywsg0js945UcG798",
"lastUpdatedAt": 1605640318713,
"resetAt": 1592592811776,
"type": ""
}
]
},
"guideStepId": "WkaB4F2droQ5sSqd-FvC7H9coJQ",
"language": "en-US"
},
"timestamp": 1626804384,
"visitorId": "Webhook Visitor",
"uniqueId": "b1f15067d47df50a1207dc2d0ce6171a40f8304e"
}
NPS Submitted
{
"app": {
"id": -323232,
"name": "test_application",
"platform": "web"
},
"accountId": "Webhook Account",
"subscription": {
"id": 4802463602049999,
"name": "test_application"
},
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36",
"event": "npsSubmitted",
"properties": {
"guideId": "FjHsQ7S8z0ircYxe3vO4GHawvwI",
"guideProperties": {
"createdAt": 1591024335185,
"createdByUser": {
"username": "pendo-user@example.com"
},
"id": "FjHsQ7S8z0ircYxe3vO4GHawvwI",
"lastUpdatedAt": 1626804377122,
"lastUpdatedByUser": {
"username": "pendo-user@example.com"
},
"name": "Quarterly NPS",
"steps": [
{
"id": "WkaB4F2droQ5sSqd-FvC7H9coJQ",
"lastUpdatedAt": 1619546765626,
"resetAt": 1592592811776,
"type": ""
},
{
"id": "oFs_eA1lF61Ywsg0js945UcG798",
"lastUpdatedAt": 1605640318713,
"resetAt": 1592592811776,
"type": ""
}
]
},
"guideStepId": "WkaB4F2droQ5sSqd-FvC7H9coJQ",
"language": "en-US",
"nps": {
"rating": 9,
"reason": "Keep up the great work!",
"source": "web"
}
},
"timestamp": 1626804431,
"visitorId": "Webhook Visitor",
"uniqueId": "ccb0f95474ae8b630ede92f8f8dbac03cddfc1c3"
}
0
Comments
UPDATE: This has been added to our Help Center article on Webhooks under the 'Example Webhook Responses' section.
Please sign in to leave a comment.