Poll

get

Submits an answer to a survey question in an e-mail.

Path parameters
survey_idstringRequired

The survey's unique ID.

Query parameters
identifierstringRequired

The account's unique ID.

Example: PI-1234567890
callbackstringOptional

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('{}')".

Example: console.debug
device_udidstringOptional

The device's unique ID.

Example: 00000000-0000-4000-f000-000000000001
device_typestring · enumRequired

The type of device that's requesting the survey/poll. Use 'desktop' if unsure.

Possible values:
urlstringOptional

The URL where the event occurred. Conditionally required. Required if device_type = native_mobile.

question_idnumberRequired

The question's unique ID.

custom_datastringOptional
preview_modestringOptional

If 'true' then nothing will be recorded in the database.

Example: true
visit_countnumberOptional

The number of times the user has visited the site. Used to target surveys.

pageview_countnumberOptional

The number of times the user has visited the page. Used to target surveys.

Responses
200

Successful response.

application/javascript
get
/surveys/{survey_id}/poll

Last updated

Was this helpful?