Direct serve
get
Returns the first eligible survey along with its questions and possible answers. One of client_key and udid is required.
Query parameters
identifierstringRequiredExample:
The account's unique ID.
PI-1234567890
client_keystringOptional
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.
udidstringRequiredExample:
The device's unique ID.
00000000-0000-4000-f000-000000000001
custom_datastringOptional
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.
preview_modestringOptionalExample:
If 'true' then nothing will be recorded in the database.
true
Responses
200
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).
application/javascript
Responseone of
stringOptionalExample:
{}
400
Error response.
text/plain
get
GET /direct_serve HTTP/1.1
Host: survey.pulseinsights.com
Accept: */*
{}
Last updated
Was this helpful?