Serve
Serves an eligible survey.
The account's unique ID.
PI-1234567890The type of device that's requesting the survey/poll. Use 'desktop' if unsure.
Conditionally required. If device_type != 'native_mobile' OR 'email'. Response will be wrapped in callback code. For example, passing "console.debug" will result in "console.debug('{}')".
console.debugThe device's unique ID.
00000000-0000-4000-f000-000000000001If 'true' then it will return surveys in DRAFT status or with frequency caps enabled. (These are not returned otherwise).
trueAlso known as "Context Data". Used to specify context in which the survey appeared. See https://docs.pulseinsights.com/implementing-pulse-insights-dev/implementing-on-web-and-mobile-web/ingesting-contextual-data-for-targeting-and-analysis#context-data for more details.
The number of times the user has visited the site. Used to target surveys.
Used to identify a user across devices and advanced survey targeting. See https://docs.pulseinsights.com/implementing-pulse-insights-dev/implementing-on-web-and-mobile-web/client-key for more details.
The number of times the user has visited the page. Used to target surveys.
Native-Mobile only. The number of days the app has been installed for.
1Native-Mobile only. The number of times the app has been launched.
7Native-Mobile only. The view used to access the survey.
domain.comNative-Mobile only. The type of mobile device.
Successful response. Will return empty object if no eligible surveys are found. Otherwise the return type is based on the "device_type" parameter. (native_mobile, email, all others).
{}Error response.
Last updated
Was this helpful?