Surveys
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns a specific survey with the provided ID.
/surveys/{survey_id}
The survey's unique identifier.
The account's unique ID.
PI-1234567890
The type of device that's requesting the survey/poll. Use 'desktop' if unsure.
desktop
, mobile
, tablet
, native_mobile
, email
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.debug
Also 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.
If 'true' then nothing will be recorded in the database.
true
The number of times the user has visited the site. Used to target surveys.
The number of times the user has visited the page. Used to target surveys.
The device's unique ID.
00000000-0000-4000-f000-000000000001
The URL from which the submission was made. If not provided HTTP_REFERER will be used as a fallback.
Retrieves a survey by its event name.
/surveys/{event_name}
The name of the event identifying the survey.
The account's unique ID.
PI-1234567890
The type of device that's requesting the survey/poll. Use 'desktop' if unsure.
desktop
, mobile
, tablet
, native_mobile
, email
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.debug
Also 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.
If 'true' then nothing will be recorded in the database.
true
The number of times the user has visited the site. Used to target surveys.
The number of times the user has visited the page. Used to target surveys.
The device's unique ID.
00000000-0000-4000-f000-000000000001
The URL from which the submission was made. If not provided HTTP_REFERER will be used as a fallback.